Hi!
On Sun, Feb 25, 2018 at 01:51:08AM -0800, Maxim Ivanov wrote:
> > type Time struct {
> > Err error
> > *time.Time
> > }
> Problem is that it continues to be product type, nothing really enforces
> that you can't use t as a time.Time when t.Err is set.
That's why I've used *time.Time, not time.Time - if you try to use it when
t.Err is set you'll get panic because of nil value.
--
WBR, Alex.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.