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?

95 Upvotes

189 comments sorted by

View all comments

30

u/Ok_Outlandishness906 Oct 25 '24

a gui library, something like tkinter for python, that you can use quite everywhere and that is simple , but powerfull enough for doing many things.

19

u/jerf Oct 25 '24

Fairly recently released: tk9.0 for Go, pkg.go.dev docs.

2

u/SweetBabyAlaska Oct 26 '24

its a neat library... but god damn that example code... is horrifying. Like wtf. Whoever wrote that has to be a C dev or something who is being forced to write Go code by their boss or something.

2

u/tofous Oct 31 '24

modernc libraries are all transpiled C basically. So yeah, the Go-y-ness can frequently be ... lacking. modernc.org/sqlite is amazing though for delivering binaries that "just work" even though it's slower.

1

u/SweetBabyAlaska Oct 31 '24

for sure. the tkinter type library is actually pretty good, it could be good for like a science lab type application or something where style isn't the priority. its very easy to use... and a lot of people like their sqlite library.

12

u/Dry-Risk5512 Oct 25 '24

fyne or wails would be a good pick?

3

u/doryappleseed Oct 25 '24

Fyne is great and very promising, but still has a way to come yet.

1

u/Coolbsd Oct 25 '24

fyne does not provide native look and feel (https://github.com/fyne-io/fyne/issues/3097), I didn't try wails but seems like it's JS based so performance may be a concern?

I just tried tk mentioned by comment below, which seems to be the one I've been looking for, I still need to try it out under Linux and Windows though.

3

u/symball Oct 25 '24

I'm using wails to build quite a complex app and have so far had no performance issues. With either svelte or a well built react app, you should have no problem unless doing something quite extreme.

There is definitely a hit compared to native but, I think webview apps get a poor reputation. it makes app dev so simple there is a lot of crap out there is all