Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 321 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 321 Bytes

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