[go-nuts] Re: Logging libraries and standard library compatibility

2021-08-30 Thread Leo Baltus
Maybe it is worth checking out: https://github.com/go-logr/logr On Sunday, August 29, 2021 at 8:10:54 AM UTC+2 Amnon wrote: > Yes, this is a massive pain. > > The standard library's log.Logger is not an interface, despite ending in > er. > > If it was an interface, it would be easy for third p

[go-nuts] Memory synchronization by channel operations and mutexes

2020-06-15 Thread Leo Baltus
from gopl chapter 9.4 'Memory synchronisation’ Synchronization primitives like channel communications and mutex operations cause the processor to flush out and commit all its accumulated writes so that the effects of goroutine execution up to that point are guaranteed to be visible to goroutine