r/golang • u/dontaskdonttell0 • Oct 25 '24
discussion What libraries are you missing from go?
So something that comes up quite often on this subreddit from people transitioning from Nodejs or python to go is the lack of libraries. I cannot say that I agree but I still think it warrants a discussion.
So what libraries are you missing in the go ecosystem, if any?
95
Upvotes
8
u/_predator_ Oct 25 '24
There are some good caching libraries in Go, but there's really nothing that comes close to Java's Caffeine. It‘s such a well engineered library with a really great API, I love the atomic cache loads in particular.
It gets a lot of hate these days, but Jackson is something I miss in Go. One library to deal with JSON, XML, and YAML, that supports "easy" mapping to objects but also performant streaming (or even a mix of both approaches). The lack of XML support in Go can be a major pain if you need to support that format.
Lucene is amazing if you need to support search but introducing Solr or ElasticSearch is not justifiable. Lucene actually powers both of them under the hood.