I\'m using the github.com/go-sql-driver/mysql driver for go.
I open a database:
db, err := sql.Open(\"mysql\", str)
Then I have two fun
Try to make prepared statements db.Prepare(query string) (*Stmt, error) and than stmt.Query or stmt.Exec and than stmt.Close to reuse connections.
db.Prepare(query string) (*Stmt, error)
stmt.Query
stmt.Exec
stmt.Close