Trying to communicate with a postgres database with go, preparing the statement like this:
var stmt *sql.Stmt var err error stmt, err = db.Prepare(selectStateme
If your data source name is a url, you will do it like this:
db, err := sql.Open("postgres", "postgres://username:password@localhost/db_name?sslmode=disable")
sslmode is just added to the db url like a query parameter.
sslmode