Registry / config / tkanos-gonfig

tkanos-gonfig

JSON →
library0.0.0-20210106201359-53e13348de2fgogounverified

Package gonfig provides a simple configuration parser for Go applications.

go get github.com/tkanos/gonfig
INSTALL
IMPORT
SIG · TKANOS-GONFIG
T
tkanos-gonfig
configgov0.0.0-20210106201359-53e13348de2f
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.

gonfig
github.com/tkanos/gonfig

Reads a JSON configuration file into a struct.

package main import ( "fmt" "github.com/tkanos/gonfig" ) type Config struct { Port int } func main() { cfg := Config{} err := gonfig.GetConf("config.json", &cfg) if err != nil { panic(err) } fmt.Println(cfg.Port) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20210106201359-53e13348de2flatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
44 hits · last 30 days
node
42
Resources
tkanos-gonfig — go get tkanos-gonfig · libregistry