sql.Open global connection

Hi, Im trying to create a global connector to my Mysql DB using sql.Open. I created a .go file that is meant to be a global connector for my other files. It looks like this: var DB *sql.DB func ConnectDB() {db, err :=...

Read More