Various references which followed by myself and found useful while accessing Database from Go packages, projects would be available here
Practical Persistence in Go: Organising Database Access
https://www.alexedwards.net/blog/organising-database-access
The Connection Pool
http://go-database-sql.org/connection-pool.html