Registry / config / jinzhu-configor

jinzhu-configor

JSON →
library1.2.2gogounverified

Package configor provides a configuration library that loads configuration from files and environment variables.

go get github.com/jinzhu/configor
INSTALL
IMPORT
SIG · JINZHU-CONFIGOR
J
jinzhu-configor
configgov1.2.2
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.

configor
github.com/jinzhu/configor

Load configuration from a YAML file into a struct.

package main import ( "fmt" "github.com/jinzhu/configor" ) type Config struct { AppName string `default:"myapp"` } func main() { cfg := &Config{} configor.Load(cfg, "config.yml") fmt.Println(cfg.AppName) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

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