Unix-like environment variable functions in Go
Go-Environ is a system to implement the similar functionality as environment lists found in all Unix-based OS’. Basically, all the functions found at “man 3 setenv” from a Unix prompt. With some additions to support Go’s basic types.
sync.pool
to efficiently use resources when under heavy load.bool
, float
, and int
.Index
and Contains
functions to check for variable existence.Using “go get”:
go get github.com/srfrog/go-environ
Then import from source:
import "github.com/srfrog/go-environ"
The full code documentation is located at GoDoc:
http://godoc.org/github.com/srfrog/go-environ
Published under MIT License