This is an example project that shows the basics of working with the PostgresSQL database in golang. Go provides an abstract datalayer using the database/sql standard library.
- Local Postgres instance
- Valid Golang installation
First you need to install the Postgres Go drivers.
go get -u github.com/lib/pq
You can then start the application using go run.
go run postgres.go