This article is about how to plan connections to PostgreSQL in Golang applications.
The standard PostgreSQL library is de-facto: lib/pq
Also, the quite popular library is: pgx
I do not impose the use of any libraries, and I make a description of how to use the specified.