A simple and zero-dependencies library to parse environment variables into structs
Released with GoReleaser Pro!
Replace envExpand:"true"
with ,expand
, e.g.:
type Foo struct {
Foo string `env:"FOO,expand"`
}
Released with GoReleaser Pro!
env.Parse
with no options, no change is required.env.Parse
with one Options{}
, call env.ParseWithOptions
instead.env.Parse
with options, and pass more than one Options{}
, merge them into a single one, and use env.ParseWithOptions
instead.env.ParseWithFuncs
, use env.ParseWithOptions
instead, and put your parsers into Options{ FuncMap: <here> }
.Released with GoReleaser Pro!
Released with GoReleaser Pro!
Released with GoReleaser Pro!
Released with GoReleaser Pro!
string
(#232) (@dacapoday)Released with GoReleaser Pro!
Released with GoReleaser Pro!
Released with GoReleaser Pro!
Released with GoReleaser Pro!