DEV Community

Cover image for Which Package/Library you are missing in Go, which you know from eg Python, C#, Java?
Stefan Wuthrich
Stefan Wuthrich

Posted on

Which Package/Library you are missing in Go, which you know from eg Python, C#, Java?

What is your answer on "Which Package/Library you are missing in Go, which you know from eg Python, C#, Java?"

https://www.reddit.com/r/golang/comments/kfdawb/which_packagelibrary_you_are_missing_in_go_which/

Top comments (4)

Collapse
 
davidkroell profile image
David Kröll

C#'s Entity Framework
I haven't seen something comparable - do you know some library?

Collapse
 
golangch profile image
Stefan Wuthrich

gorm you probably know yet...
also checked from Facebook: entgo.io/ ?

Collapse
 
davidkroell profile image
David Kröll • Edited

Yes, I know gorm but the interface from Entity Framework is in my opinion better readable, more fluent and safer.

db.First(&product, "code = ?", "D42") // find product with code D42
Enter fullscreen mode Exit fullscreen mode

In C# it would look something like this:

db.FirstOrDefaultAsync(p => p.Code == "D42")
Enter fullscreen mode Exit fullscreen mode

The main issue (for me) is that you have to deal with strings when using gorm. You may easily introduce typos without anyone notices.

Ok, haven't seen entgo.io before, maybe worth a try.

No matter I miss some features from C#, Go is awesome and probably the only thing I do not miss is the async/await always present in the code...

Collapse
 
shogg profile image
shogg • Edited

A native GUI similar to declarative QML would be nice. Flutter is clutter ... still. The other alternative I know is fyne. Both can't match the simplicity of Gustavo Niemeyer's QML binding.