4 ms·
You can use nil to represent "no expiration."
by colin_mccabe 11y ago
You can use nil to represent "no expiration."
- p1mrx 11y agoTime is a struct, so nil is not a legal value. You would have to store a pointer (var t *time.Time) instead.
- colin_mccabe 11y agoYes, I was suggesting storing a pointer to the entire structure.