config icon indicating copy to clipboard operation
config copied to clipboard

📝 Go configuration manage(load,get,set,export). support JSON, YAML, TOML, Properties, INI, HCL, ENV and Flags. Multi file load, data override merge, parse ENV var. Go应用配置加载管理,支持多种格式,...

Results 17 config issues
Sort by recently updated
recently updated
newest added

Bumps [github.com/gookit/goutil](https://github.com/gookit/goutil) from 0.5.7 to 0.5.8. Release notes Sourced from github.com/gookit/goutil's releases. v0.5.8 Change Log Fixed fix: cflag - ReplaceShorts() should support replace '-n=tom' -> '--name=tom https://github.com/gookit/goutil/commit/ec30cf1075bdb4af97d43cfe88e7716cf2c55703 Feature feat: maputil...

dependencies
go

The ``config.Set()`` should override the value even though the old value is not the same type of the new one. EX: ```json { "parent": { "child": "Test Var" } }...

enhancement
question

``` type Option struct { Test string `config:"test"` } func TestConfig(t *testing.T) { var opt Option opt.Test = "test" con := config.New("test", func(opt *config.Options) { opt.DecoderConfig.TagName = "config" opt.ParseDefault =...

enhancement
question

**System (please complete the following information):** - OS: `linux` [e.g. linux, macOS] - GO Version: `1.13` [e.g. `1.13`] - Pkg Version: `1.1.1` [e.g. `1.1.1`] **Describe the bug** ```go type ConferenceConfigure...

question

There is nothing wrong using `|` for separating substitutions/replacements. Nevertheless, I though I would give it a whirl because using the form `:-` is something that probably everyone in the...

suggestion

support setting the default file when parsedefault complex structures. ``` type ConfigA struct { config ConfigB `config:"config" default:"configb.yaml"` } type ConfigB struct { A string `config:"a"` B string `config:"b"` }...

enhancement

``` test: data1: key: value data2: key: value ``` 当删除一组配置信息的时 ``` test: data1: key: value ``` 监听到文件变更,`cfg.Data()`读出来的还是两组信息,data1和data2

question

Hi, is there any support for panic on missing config keys and values? Right now I have a wrapper code that calls the config tool with direct reads to accomplish...

enhancement
suggestion

``` // 监听配置文件热修改 func watchConfigFiles(cfg *config.Config) { // 开一个新线程防止主线程被卡住 readyTask := new(sync.WaitGroup) readyTask.Add(1) go func() { watcher, err := fsnotify.NewWatcher() if err != nil { cliutil.Errorln(err.Error()) return } defer watcher.Close()...

bug