- Module github.com/eslider/go-config with env/yaml/json/ini packages - internal: source, keymap, merge, structconv, bytesutil - cmd/envc: convert, get, merge - docs/asr ASR-0001..0008, README/CHANGELOG/AGENTS refresh - golangci-lint v2 config; tests + fixtures Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
424 B
Go
15 lines
424 B
Go
// Package env loads dotenv files and process environment variables into nested
|
|
// maps and Go structs. Multiple sources merge with later scalars overriding
|
|
// earlier ones; maps merge recursively.
|
|
//
|
|
// Example:
|
|
//
|
|
// c := env.New(
|
|
// env.WithFile(".default.env"),
|
|
// env.WithFile(".env"),
|
|
// env.WithCurrentEnvironment(),
|
|
// )
|
|
// var cfg MyConfig
|
|
// if err := c.Unmarshal(&cfg); err != nil { ... }
|
|
package env
|