Skip to content
/ goenv Public

Environment variables loading utility for Go programs

Notifications You must be signed in to change notification settings

VPagani/goenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Environment variables loading utility

Usage

env.go

var env = goenv.Env(".env")

var (
    AppEnv  = env("APP_ENV", "development")
    AppPort = env("APP_PORT", env("PORT"))
    AppAddr = env("APP_ADDR", ":"+AppPort)
)

About

Environment variables loading utility for Go programs

Resources

Stars

Watchers

Forks

Languages