Pass Go Structs and Arrays as Pointers, Everything Else as Values
Don't Overthink It
Don't Overthink It
I've been learning Go recently and found the documentation is horribly organized so I made this list that reorganizes it into a logical study guide.
This article compares the database/sql package with 3 other Go packages, namely: sqlx, sqlc, and GORM. The comparison focuses on 3 key areas – features, ease of use, and performance.
sqlc is a fantastic time and boilerplate saver, but is not a one-size-fits-all solution.