diff --git a/mysql_connection.go b/mysql_connection.go index 8a50255..605f2b8 100644 --- a/mysql_connection.go +++ b/mysql_connection.go @@ -3,7 +3,6 @@ package goutils import ( "database/sql" _ "github.com/go-sql-driver/mysql" - "os" "time" ) @@ -11,7 +10,7 @@ import ( ConnectionBDMySQL o antigo nome era: ConexaoBDMySQL */ func ConnectionBDMySQL() *sql.DB { - db, err := sql.Open("mysql", os.Getenv("database_mysql")) + db, err := sql.Open("mysql", Godotenv("database_mysql")) if err != nil { CreateFileDay(err.Error()) if db.Ping() != nil {