Our great sponsors
-
GoMybatis
Go ORM Library.Have Powerful Features like transaction nesting, Optimistic Lock,Logical deletion and more. like mybatis for go golang
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
In Java world there's a thing which is called MyBatis/iBatis. It's not ORM, but much lighter weight solution. It allows you to map SQL results on structures and back without complicated logic, thus reducing a lot of boilerplate. Is there anything similar for GoLang? The closest I found is sqlx. There's also Go port of MyBatis: https://github.com/zhuxiujia/GoMybatis, however, it doesn't have many stars.
Check this out https://github.com/Masterminds/structable
I guess not the same, but have you looked at sqlc for an SQL-first alternative?
You can use this https://github.com/jmoiron/sqlx