The various meta linters pick this up.
I would highly recommend using:
https://github.com/alecthomas/gometalinter to improve the quality of
code, for this and other issues not picked up by the standard tool chain.
Regards
Steve
On 03/04/2018 00:37, Andrew Pennebaker wrote:
Some Go ty
this is https://github.com/golang/go/issues/8005, i believe.
On Mon, Apr 2, 2018 at 5:37 PM, Andrew Pennebaker
wrote:
> Some Go types like sync.Mutex have a subtle API issue, where the objects
> really shouldn't be copied or passed around into different function calls,
> e.g. to a goroutine worke
Some Go types like sync.Mutex have a subtle API issue, where the objects
really shouldn't be copied or passed around into different function calls,
e.g. to a goroutine worker. However, this is not enforced by the current
API, but merely mentioned in the documentation, which is easily ignored.
I