Which ORM is best for Golang

Since you are new to Go, I would suggest that you first become familiar with using database/sql with a driver of your choice. Here are some resources to help:

After you get familiarity with working with databases in Go, you might want to check out a 3rd party package like sqlx that can help with writing database code.

As you have discovered there’s also gorm but if you are expecting features that are on par with Hibernate you might be disappointed.

There’s also SQL Boiler which uses code generation to generate an “ORM” tailored to your database schema.

3 Likes