Created
September 21, 2019 21:34
-
-
Save dhruvr/951ee385ebac8b333ad08cdea72766da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db, err := sql.Open(confs.DBDriverName, connectionString) | |
if err != nil { | |
log.Fatalln("Problem while setting up the data base ", wErr) | |
} | |
if wErr = db.Ping(); err != nil { | |
log.Fatalln("Problem while pinging to the data base ", err) | |
} | |
defer Close(db) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment