gorm you probably know yet... also checked from Facebook: entgo.io/ ?
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
In C# it would look something like this:
db.FirstOrDefaultAsync(p => p.Code == "D42")
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...
async/await
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
gorm you probably know yet...
also checked from Facebook: entgo.io/ ?
Yes, I know gorm but the interface from Entity Framework is in my opinion better readable, more fluent and safer.
In C# it would look something like this:
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...