#1 env
A simple, zero-dependencies library to parse environment variables into structs
Package config is a go config management implement.
Health score 96/100, confidence 95/100.
| Latest version | v2.2.8 |
| Imported by | 215 packages |
| Stars | 583 |
| Forks | 61 |
| Last activity | 7 days ago |
| Latest release | v2.2.8 (1 months ago) |
| License | MIT |
| Known vuln records | 0 |
| Symbol | Kind | Synopsis |
|---|---|---|
| Config | Type | type Config struct{} |
| Config.AddAlias | Method | func (c *Config) AddAlias(format, alias string) |
| Config.AddDriver | Method | func (c *Config) AddDriver(driver Driver) |
| Config.AliasMap | Method | func (c *Config) AliasMap() map[string]string |
| Config.BindStruct | Method | func (c *Config) BindStruct(key string, dst any) error |
| Config.Bool | Method | func (c *Config) Bool(key string, defVal ...bool) (value bool) |
| Config.ClearAll | Method | func (c *Config) ClearAll() |
| Config.ClearCaches | Method | func (c *Config) ClearCaches() |
| Config.ClearData | Method | func (c *Config) ClearData() |
| Config.Data | Method | func (c *Config) Data() map[string]any |
| Config.Decode | Method | func (c *Config) Decode(dst any) error |
| Config.DelDriver | Method | func (c *Config) DelDriver(format string) |
A simple, zero-dependencies library to parse environment variables into structs
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