|
|
|
|
|
by 9rx
275 days ago
|
|
> That the golang team refuses to bless a single interface for everyone to settle on Uh... https://pkg.go.dev/golang.org/x/exp/slog#Handler If zap, charmlog, etc. don't provide conformance to the interface, that's not really on the Go team. It wouldn't be that hard to write your own adapter around your unidiomatic logger of choice if you're really stuck, though. This isn't an actual problem unless you think someone else owes you free labor for some reason. |
|
For an example from one of my own libraries, see
https://github.com/peterldowns/pgmigrate/blob/d3ecf8e4e8af87...