#1 v2
Package config is a go config management implement.
A simple, zero-dependencies library to parse environment variables into structs
Health score 95/100, confidence 100/100.
| Latest version | v3.5.0+incompatible |
| Imported by | 1.4K packages |
| Stars | 6.2K |
| Forks | 278 |
| Last activity | 9 days ago |
| Latest release | v11.4.1 (1 months ago) |
| License | MIT |
| Known vuln records | 0 |
| Symbol | Kind | Synopsis |
|---|---|---|
| CustomParsers | Type | type CustomParsers map[reflect.Type]ParserFunc |
| ParserFunc | Type | type ParserFunc func(v string) (interface{}, error) |
| ErrNotAStructPtr | Variable | var ErrNotAStructPtr = errors.New("Expected a pointer to a Struct") |
| ErrUnsupportedSliceType | Variable | var ErrUnsupportedSliceType = errors.New("Unsupported slice type") |
| ErrUnsupportedType | Variable | var ErrUnsupportedType = errors.New("Type is not supported") |
| OnEnvVarSet | Variable | var OnEnvVarSet func(reflect.StructField, string) |
| Parse | Function | func Parse(v interface{}) error |
| ParseWithFuncs | Function | func ParseWithFuncs(v interface{}, funcMap CustomParsers) error |
Package config is a go config management implement.
Simple, extremely lightweight, extensible, configuration management library for Go. Supports JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper.
Package xdg provides an implementation of the XDG Base Directory Specification.
Go configuration with fangs.
The home of the CUE language! Validate and define text-based and dynamic configuration