Registry / config / crgimenes-goconfig

crgimenes-goconfig

JSON →
library1.5.0gogounverified

Package goconfig uses a struct as input and populates the fields of this struct with parameters from command line, environment variables and configuration file.

go get github.com/crgimenes/goconfig
INSTALL
IMPORT
SIG · CRGIMENES-GOCONFIG
C
crgimenes-goconfig
configgov1.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.

goconfig
github.com/crgimenes/goconfig

Parses command line, environment, and config file into a struct.

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

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
32
Resources
crgimenes-goconfig — go get crgimenes-goconfig · libregistry