Short code to test SQLC
Follow these steps:
git clone https://github.com/kirkgo/sqlc-example.git
cd sqlc-example
go get github.com/lib/pq
go get github.com/kyleconroy/sqlc/cmd/sqlc
go install github.com/kyleconroy/sqlc/cmd/sqlc
How to run:
go run ./main.go
You can know more about SQLC at sqlc.dev.