Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 12, 2020 04:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/f0337804c858113c3ea9983808edaae9 to your computer and use it in GitHub Desktop.
Save parzibyte/f0337804c858113c3ea9983808edaae9 to your computer and use it in GitHub Desktop.
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