Made a library? Written a blog post? Found a useful tutorial? Share it with the Go community here or just enjoy what everyone else has found!
gookit/config - Go config management. support JSON, YAML, TOML, INI, HCL, ENV and Flags. Multi file load, data override merge, parse ENV var.
JSON
(default), INI
, YAML
, TOML
, HCL
JSON
content support comments. will auto clear commentsflags
)map.key
arr.2
envKey: ${SHELL}
-> envKey: /bin/zsh
Get
Int
Uint
Int64
Float
String
Bool
Ints
IntMap
Strings
StringMap
...Posted by: InhereProvide a sub-package
dotenv
that supports importing data from files (eg.env
) to ENV