Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/olebedev/config
JSON or YAML configuration wrapper with convenient access methods.
https://github.com/olebedev/config
configuration golang json yaml
Last synced: about 2 months ago
JSON representation
JSON or YAML configuration wrapper with convenient access methods.
- Host: GitHub
- URL: https://github.com/olebedev/config
- Owner: olebedev
- License: other
- Created: 2014-04-21T15:09:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-08-22T22:13:14.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T15:06:31.979Z (2 months ago)
- Topics: configuration, golang, json, yaml
- Language: Go
- Homepage:
- Size: 46.9 KB
- Stars: 268
- Watchers: 10
- Forks: 43
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Standard CLI)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Standard CLI)
- awesome-go-extra - config - 04-21T15:09:39Z|2022-08-22T22:13:14Z| (Configuration / Advanced Console UIs)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Standard CLI)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-go-cn - config
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Standard CLI)
- fucking-awesome-go - :octocat: config - JSON or YAML configuration wrapper with environment variables and flags parsing. :star: 74 :fork_and_knife: 15 (Configuration / Advanced Console UIs)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-go-projects - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Standard CLI)
- awesome-go - config
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-go-with-framework - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-stars - olebedev/config - JSON or YAML configuration wrapper with convenient access methods. (Go)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Standard CLI)
- awesome-go-cn - config
- awesome-go-stars - config(stars: 268) - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Standard CLI)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-go - config - 环境变量和标志解析的JSON或YAML配置包装。 (<span id="组态-configuration">组态 Configuration</span> / <span id="高级控制台用户界面-advanced-console-uis">高级控制台用户界面 Advanced Console UIs</span>)
- awesome-go. - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-go-cn - config - JSON 或 YAML 配置的封装,支持环境变量和标记解析 (配置 / 高级控制台界面)
- awesome-go-with-stars - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Standard CLI)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-go-cn - config
- repo-1316-awesome-go-cn - config
- repo-1211-awesome-go-cn - config
- awesome-Char - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-reader - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- Go-awesome - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Standard CLI)
- awesome-go-handwritten - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-go - config - JSON 或 YAML 配置的封裝,支持環境變數和標記解析 (配置 / 高級控制台界面)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Standard CLI)
- awesome-go2 - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. - :arrow_down:84 - :star:81 (Configuration / Advanced Console UIs)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Advanced Console UIs)
- awesome-go-zh - config
- awesome-go-cn - config
- go-awesome-cn-star - config
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Standard CLI)
- awesome-go - config - JSON or YAML configuration wrapper with environment variables and flags parsing. (Configuration / Standard CLI)
- awesome-go - config - JSON or YAML configuration wrapper with convenient access methods. - ★ 178 (Configuration)
- awesome-go-cn - config
README
# Config [![wercker status](https://app.wercker.com/status/b4e8561d9a711afcb016bf0018e83897/s/ "wercker status")](https://app.wercker.com/project/bykey/b4e8561d9a711afcb016bf0018e83897) [![GoDoc](https://godoc.org/github.com/olebedev/config?status.png)](https://godoc.org/github.com/olebedev/config)
Package config provides convenient access methods to configuration
stored as JSON or YAML.This is a fork of the [original version](https://github.com/moraes/config).
This version extends the functionality of the original without losing compatibility.
Major features added:- [`Set(path string, value interface{}) error`](http://godoc.org/github.com/olebedev/config#Config.Set) method
- [`Env() *config.Config`](http://godoc.org/github.com/olebedev/config#Config.Env) method, for OS environment variables parsing
- [`Flag() *config.Config`](http://godoc.org/github.com/olebedev/config#Config.Flag) method, for command line arguments parsing usign pkg/flag singleton
- [`Args(args ...string) *config.Config`](http://godoc.org/github.com/olebedev/config#Config.Args) method, for command line arguments parsing
- [`U*`](https://godoc.org/github.com/olebedev/config#Config.UBool) methods
- [`Copy(...path) (*config.config, error)`](https://godoc.org/github.com/olebedev/config#Config.Copy) method
- [`Extend(*config.Config) (*config.Config, error)`](https://godoc.org/github.com/olebedev/config#Config.Extend) method
- [`Error() error`](https://godoc.org/github.com/olebedev/config#Config.Error) method to show last parsing error, works only with `.Args()` methodExample and more information you can find [here](http://godoc.org/github.com/olebedev/config).