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
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