Iniciar sesión

.env.go.local Jun 2026

.PHONY: build-prod build-prod: go build -o bin/server ./cmd/server

func LoadEnv() // Get the current working directory execPath, err := os.Getwd() if err != nil log.Fatal(err) .env.go.local

DB_PASSWORD=my_secret_password API_KEY=12345_67890 DEBUG_MODE=true Use code with caution. Copied to clipboard Update .gitignore : To prevent accidentally leaking your secrets, ensure your .gitignore file includes this line: .env*.local Use code with caution. Copied to clipboard How to Use it in Go The standard library "debug") : By naming convention

# .env PORT=8080 DB_DSN=postgres://user:pass@localhost:5432/mydb REDIS_ADDR=localhost:6379 LOG_LEVEL=info .env.go.local

// env/env.local.go //go:build local // +build local

func init() os.Setenv("DB_HOST", "localhost:5432") os.Setenv("API_KEY", "dev-12345") os.Setenv("LOG_LEVEL", "debug")

: By naming convention, these files are meant to be added to .gitignore to prevent sensitive credentials from being committed to version control .

HEINEKEN México

Bienvenido a nuestro Sitio Web

¿Buscas algo sobre HEINEKEN México?
Acá lo encontrarás.

Lo sentimos, pero debes ser mayor de 18 años para poder acceder a este sitio.

Estamos comprometidos a comunicarnos de manera responsable, por lo que antes de ingresar necesitamos conocer tu edad.