-
-
Save parzibyte/96bde377ba7a3d4106119ec75e77879f 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
package main | |
import ( | |
"fmt" | |
"github.com/joho/godotenv" | |
"os" | |
) | |
var _ = godotenv.Load(".env") // Cargar del archivo llamado ".env" | |
var ( | |
ConnectionString = fmt.Sprintf("%s:%s@tcp(%s:%s)/%s", | |
os.Getenv("user"), | |
os.Getenv("pass"), | |
os.Getenv("host"), | |
os.Getenv("port"), | |
os.Getenv("db_name")) | |
) | |
const AllowedCORSDomain = "http://localhost" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment