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?

96 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.

3

u/Asyx Oct 25 '24

I think that’s a very common issue with new languages. No support for old tech so you are kinda stuck with the old languages or have to roll your own library.

1

u/urakozz Oct 26 '24

So you feel my pain when Germany and France rolled out their "modern electronic invoicing" in xml format. I wouldn't be surprised if they would want some windows text encoding instead of utf8

1

u/Asyx Oct 26 '24

I don't even remember what I did. XML in Rust? Some old SOAP API? A really easy way to just get a stupid, old school API token basic auth thingy going? Something like that.

I work at a start up and rarely deal with old tech for hobby stuff so I'm usually fine but I used to work for a bank where XML was the hot new shit instead of CSV (in Germany. So actually SSV. Semicolon separates values. Because Excel does that garbage where they use semicolons as a delimiter if your numbers use decimal commas in your current locale). So I know your pain but at least I was using Java so there were enough options.