db, err := sql.Open("sqlserver", "server=myserver.database.windows.net;user id=myuserid;"+
password=mypassword;port=1433;database=mydbname;encrypt=true;TrustServerCertificate=false;"+
connection+timeout=30;hostNameInCertificate=*.database.windows.net;")
if err != nil {
globals.Log.WithError(err).WithFields(logrus.Fields{
"drivername": "sqlserver",
"connectionstring": "secret",
"error": err.Error()}).Panic("Unable to connect to db")
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/0a0591d0-2b5a-4d21-8e95-012ba26b3900%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to golan...@googlegroups.com.