An open API service indexing awesome lists of open source software.

https://github.com/lestrrat-go/env


https://github.com/lestrrat-go/env

Last synced: 14 days ago
JSON representation

Awesome Lists containing this project

README

        

# env

Utilities for accessing environment variables

# SYNOPSIS

```go
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
```