Golang “GO” with PostgreSQL

I know it’s been a while since I posted but as I m learning some go connecting PostgreSQL I’ve decided to share the way I did it as there was many examples but all running in the main.go

This example will have separate package for config file and separate package for database connection.

Rather than me repeating it all go straight to the source code in github


Result is: