[go-nuts] Re: How to allow library callers to control logging

2020-08-03 Thread leo.b...@npo-data.nl
Not sure if this is what you are looking for, but https://github.com/go-logr/logr seems to address log abstraction. On Friday, July 31, 2020 at 3:05:03 AM UTC+2 fai...@google.com wrote: > I have a library that is used by cross platform binaries running in corp. > Some of these binaries don't ne

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

2020-08-17 Thread leo.b...@npo-data.nl
Thanks. So I take it this must be handled by the compiler when generating assembly. I have peeked in the src/cmd/compile/ directory , assuming it is hidden there, but that's a rabbit hole I do want to go in just yet. What I am really looking for is knowing which instructions lead to memory-syn

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

2020-08-17 Thread leo.b...@npo-data.nl
gt; packages. So it explicitly mentions sync/atomic but only mentions sync.Mutex and sync.RWMutex further in the text. On Monday, August 17, 2020 at 1:06:08 PM UTC+2 jesper.lou...@gmail.com wrote: > On Mon, Aug 17, 2020 at 12:54 PM leo.b...@npo-data.nl < > leo.b...@npo-data.nl> wrote: >