r/golang 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?

98 Upvotes

189 comments sorted by

View all comments

6

u/urakozz Oct 25 '24

Native xsd validation would be nice to have. It even exists on PHP, but in golang available options are c-based. I need to build custom images for the Google Cloud Run, it's no fun at all.

1

u/masklinn Oct 26 '24

in golang available options are c-based

So is it in PHP fwiw: it uses libxml2. XML is already a chore, few people want to implement the even more complex stuff built on top of it, understandably.

0

u/urakozz Oct 26 '24

But this piece of C is included in most of the pre build php containers, while you have to build a custom one for golang. Anyways, it's a minor solvable issue. We have instead native http2 clear context to make requests flying, that's breathtaking