a golang library to manage environment variables
Package env provides an env struct field tag to marshal and unmarshal environment variables.
…
This will initially throw an error if IM_REQUIRED is not set in the environment as part of the env struct validation.
This error can be resolved by setting the IM_REQUIRED environment variable manually in the environment or by setting it in the
code prior to calling UnmarshalFromEnviron with:
os.Setenv("IM_REQUIRED", "some_value")
There is limited support for dictating how a field should be marshaled or unmarshaled. The following example shows how you could marshal/unmarshal from JSON
…
No open issues yet, or sync has not completed.