3 ms·
> What's wrong with it ? It relies on lining up pairs of values in a way that cannot be checked by the compiler rather than having dedicated functions that ens
by jen20 4y ago
> What's wrong with it ?
It relies on lining up pairs of values in a way that cannot be checked by the compiler rather than having dedicated functions that ensure they are kept together.
This is the fundamental difference between bad logging libraries (like klog, hclog etc) and good logging libraries (like zerolog).
- xani_ 4y agoI guess simplest fix for that particular one would be accepting `map[string]string` but that won't exactly work for the any type, and you can't easily add more. Maybe `...map[string]interface{}` but we're back to "the overhead is kinda shit"