# env Library Works like sh env, but is file based. ## Design goals * backwards compatible: saved files are compatible with bash env syntax * simple: only string key=value pairs * concurrent: use file locks * global: env functions can be called from anywhere * dynamic: automaticly detect env changes by the file mtime ## Theory of Operation The core philosophy of this library is to standardize env in a new way env configuration files are loaded in this defined order: 1. /usr/share/doc/foo/foo.env # upstream application defaults 2. /etc/foo/foo.env # OS distribution defaults 3. /etc/default/foo # system admin overrides 4. ~/.config/foo/foo.env # your user settings ## function examples ``` key := env.Get("APIKEY") if env.True("verbose") { fmt.Println("worked") } env.Set("LocalPort", "8080") ```