Top 4.7% dependent repos on proxy.golang.org
proxy.golang.org : github.com/haraldfw/cfger
Package cfger provides functions to read configuration files in raw, JSON or YAML format from a file or environment variable. And additionally a shortcut to read docker-secrets. It also follows configuration locations in env-vars if the value has a valid prefix. Valid prefixes are: ReadCfg(val) wraps ReadStructuredCfg(val, nil), which results in a raw read. So if val here resolves to a JSON-file it returns the contents of the JSON-file as a string, without unmarshalling For cfger to unmarshal the file, you need to supply a valid interface in the form defined in the documentation for the package https://golang.org/pkg/encoding/json/#Unmarshal. Similarly for YAML-unmarshalling you have to supply a valid interface as described in the https://godoc.org/gopkg.in/yaml.v3#Unmarshal documentation.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/haraldfw/cfger
Keywords:
docker
, docker-secrets
, go
, golang
, golang-configuration
License: MIT
Latest release: over 5 years ago
First release: over 5 years ago
Namespace: github.com/haraldfw
Dependent repositories: 1
Stars: 7 on GitHub
Forks: 2 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 5 days ago