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
This is how I got it working:
db, err := sql.Open("postgres", "postgres://{user}:{password}@{hostname}:{port}/{database-name}?sslmode=disable")