Re: [go-nuts] When set time.Location, will be detected Data Race

2020-07-23 Thread scudette
A bit late to the party here but I would like to explore your rational for stating that time.Local should not be modified by user code. The code seems to suggest this is expected: https://golang.org/src/time/zoneinfo.go ``` // localLoc is separate so that initLocal can initialize76 // it e

[go-nuts] Re: How to know if interface{} data is nil w/o reflecting?

2018-05-08 Thread scudette
In my case, being a new go learner the following bit of code stumped me. I am receiving a interface{} value and I am trying to figure out the best way to print it. If the value supports the fmt.Stringer() interface then I want to use that, otherwise i can do some other things. So I came up with