Registry / cli / luzifer-rconfig

luzifer-rconfig

JSON →
library2.2.0+incompatiblegogounverified

Package rconfig implements a CLI configuration reader with struct-embedded defaults, environment variables, and posix compatible flag parsing using the pflag library.

go get github.com/Luzifer/rconfig
INSTALL
IMPORT
SIG · LUZIFER-RCONFIG
L
luzifer-rconfig
cligov2.2.0+incompatible
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.

rconfig
github.com/Luzifer/rconfig

Parse CLI flags, environment variables, and defaults into a struct

package main import ( "fmt" "github.com/Luzifer/rconfig" ) type Config struct { Name string `default:"world" flag:"name" env:"NAME"` } func main() { cfg := &Config{} rconfig.Parse(cfg) fmt.Printf("Hello, %s!\n", cfg.Name) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.2.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
29
OpenAI (training)
1
Resources
luzifer-rconfig — go get luzifer-rconfig · libregistry