Skip to content
This repository has been archived by the owner on Oct 25, 2020. It is now read-only.
/ env Public archive

Utility functions for environment-based configs

License

Notifications You must be signed in to change notification settings

xdefrag/env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ENV

ENV is utility functions for environment-based configs.

env.Get("POSTGRES_PASSWORD").String("passw0rd")
env.Get("POSTGRES_MAX_CONNECTIONS").Int(10)
env.Get("POSTGRES_SSL_ENABLED").Bool(true)
env.Get("POSTGRES_PING_TIMEOUT").Duration(30 * time.Second)