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

Stefan Wuthrich @golangch

About: I work as CPO for a Swiss Telco/Messaging Platform Company. My real passion is developing in Golang, Vue-Nuxt/ReactJs/Angular with Redis, Nsq/RabbitMQ, ArangoDB, MongoDB and Sql

Location:
Nomad, now in Vietnam
Joined:
Oct 6, 2018

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

Publish Date: Dec 18 '20
13 5

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/

Comments 5 total

  • David Kröll
    David KröllDec 20, 2020

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

    • Stefan Wuthrich
      Stefan WuthrichDec 21, 2020

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

      • David Kröll
        David KröllDec 21, 2020

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

  • shogg
    shoggDec 25, 2020

    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.

Add comment