Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/vars.go Secret

Created Oct 12, 2020
Embed
What would you like to do?
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