Registry / config / cristalhq-aconfig

cristalhq-aconfig

JSON →
library0.19.0gogounverified

Package aconfig provides a simple but powerful config loader supporting defaults, files, environment variables, and flags.

go get github.com/cristalhq/aconfig
INSTALL
IMPORT
SIG · CRISTALHQ-ACONFIG
C
cristalhq-aconfig
configgov0.19.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.

aconfig
github.com/cristalhq/aconfig

Loads configuration from defaults, files, environment variables, and flags.

package main import ( "log" "github.com/cristalhq/aconfig" ) type Config struct { Port int `default:"8080"` Host string `default:"localhost"` } func main() { var cfg Config loader := aconfig.LoaderFor(&cfg, aconfig.Config{}) if err := loader.Load(); err != nil { log.Fatal(err) } log.Printf("Config: %+v", cfg) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
26
OpenAI (training)
1
Resources
cristalhq-aconfig — go get cristalhq-aconfig · libregistry