Skip to content

lestrrat-go/env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

env

Utilities for accessing environment variables

SYNOPSIS

import "github.com/lestrrat-go/env"

env.SetPrefix("MYAPP")

value, ok := env.Lookup("FOO") // looks up MYAPP_FOO

env.Value("FOO", "defaultValue") // return defaultValue if MYAPP_FOO is not set

env.SetValue("FOO", "newValue") // set MYAPP_FOO

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages