3 ms·
> A language like Golang tries really hard to only have _one_ way to do something Really? Logging in Go: A Comparison of the Top 9 Libraries https://betterst
by andix 2y ago
> A language like Golang tries really hard to only have _one_ way to do something
Really?
Logging in Go: A Comparison of the Top 9 Libraries
https://betterstack.com/community/guides/logging/best-golang-logging-libraries/ https://betterstack.com/community/guides/logging/best-golang...
- evanmoran 2y agoSince Go added slog many of these have been removed in favor of that. Obviously not universal, but compared to npm there really are massive numbers of devs just using the standard library.
- throwaway920102 2y agoI would argue logging options to be more of an exception than the rule. Compare the actual language features of Go to something like Rust or Javascript and you'll see what I mean. As a new developer to the language (especially for juniors), you can learn all the features of Go much faster. It's made to be picked up quickly and for everyone's code to look the same, rather than expressing a personal style.
- duskwuff 2y agoI find it hard to imagine how a language could enforce that no two (third-party) libraries can implement the same functionality.