Skip to content

Atrox/env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ENV - a tiny .env wrapper

this is probably not much to use to anybody else but feel free to do whatever you want with it

import "go.atrox.dev/env"

Notes:

  • .env file is automatically loaded, if there is no .env file this wrapper does not care - no error is thrown
  • APP_ENV must be set to the apps current environment (development/staging/production, ...)
  • get environment variables with Get(key) and GetDefault(key, default)
  • check if production with IsProduction() or development with IsDevelopment()

About

a tiny .env wrapper

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages