Registry / config / src-d-gcfg

src-d-gcfg

JSON →
library1.4.0gogounverified

A Go library for reading INI-style configuration files into structs, similar to git config syntax.

go get github.com/src-d/gcfg
INSTALL
IMPORT
SIG · SRC-D-GCFG
S
src-d-gcfg
configgov1.4.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.

gcfg
github.com/src-d/gcfg

Reads a configuration string into a struct.

package main import ( "fmt" "github.com/src-d/gcfg" ) type Config struct { Section struct { Key string } } func main() { var cfg Config err := gcfg.ReadStringInto(&cfg, "[Section]\nkey = value") if err != nil { panic(err) } fmt.Println(cfg.Section.Key) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
47 hits · last 30 days
node
44
Resources
src-d-gcfg — go get src-d-gcfg · libregistry