[go-nuts] Re: Safe to treat time.Local != time.LoadLocation("your current timezone")?

2018-10-19 Thread 'Kane York' via golang-nuts
Tamas, that's checking if the offset at a particular instant was the same as the local zone - what OP cares about is that the caller is not using literally "time.Local" in their code. I recommend performing source analysis for this - it's a lot easier on you than runtime checks. -- You receiv

Re: [go-nuts] Is this implementation of weak pointers safe?

2018-09-30 Thread 'Kane York' via golang-nuts
In Go, it's usually better to use source code analysis to look for forgotten Close calls, like the existing tooling for os.File (which does have a finalizer, but doesn't need to). -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe f