Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package main
import (
"database/sql"
_ "github.com/go-sql-driver/mysql"
)
func getDB() (*sql.DB, error) {
return sql.Open("mysql", ConnectionString)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment