Registry / config / kkyr-fig

kkyr-fig

JSON →
library0.5.0gogounverified

A configuration file and environment variable loader for Go structs with validation and defaults.

go get github.com/kkyr/fig
INSTALL
IMPORT
SIG · KKYR-FIG
K
kkyr-fig
configgov0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

fig
github.com/kkyr/fig

Load configuration from a file into a struct using fig.

package main import ( "fmt" "github.com/kkyr/fig" ) type Config struct { Name string `fig:"name" validate:"required"` } func main() { var cfg Config err := fig.Load(&cfg) if err != nil { panic(err) } fmt.Println(cfg.Name) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
Amazon
1
OpenAI (training)
1
Resources
kkyr-fig — go get kkyr-fig · libregistry