{"full_name":"spf13/viper","owner":"spf13","name":"viper","shard":"1","url":"https://github.com/spf13/viper","description":"Go configuration with fangs","homepage":null,"topics":[],"tag_pages":[],"language":"Go","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/173412?u=4865036ec60149f8354adcae563ff5cba01e0022&v=4","created_at":"2014-04-02T14:33:33Z","pushed_at":"2026-01-12T21:42:47Z","metrics":{"stars":30508,"forks":2232,"watchers":255,"issues":938,"prs":1055,"releases":35,"issues_open":8,"issues_closed":930,"prs_open":158,"prs_closed":377,"prs_merged":520,"discussions":163},"growth":{"day":{"stars":0,"forks":28,"base_day":"2026-11-15"},"week":{"stars":8,"forks":16,"base_day":"2026-11-04"},"month":{"stars":20,"forks":-36,"base_day":"2026-10-17"}},"history":{"dates":["2026-09-06","2026-09-07","2026-09-08","2026-09-09","2026-09-10","2026-09-11","2026-09-12","2026-09-13","2026-09-14","2026-09-15","2026-09-16","2026-09-17","2026-09-18","2026-09-19","2026-09-20","2026-09-21","2026-09-22","2026-09-23","2026-09-24","2026-09-25","2026-09-26","2026-09-27","2026-09-28","2026-09-29","2026-09-30","2026-10-01","2026-10-02","2026-10-03","2026-10-04","2026-10-05","2026-10-06","2026-10-07","2026-10-08","2026-10-09","2026-10-10","2026-10-11","2026-10-12","2026-10-13","2026-10-14","2026-10-15","2026-10-16","2026-10-17","2026-10-18","2026-10-19","2026-10-20","2026-10-21","2026-10-22","2026-10-23","2026-10-24","2026-10-25","2026-10-26","2026-10-27","2026-10-28","2026-10-29","2026-10-30","2026-10-31","2026-11-01","2026-11-02","2026-11-03","2026-11-04","2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[30453,30453,30453,30455,30456,30457,30458,30458,30457,30458,30458,30456,30456,30459,30458,30461,30461,30464,30466,30468,30468,30469,30472,30474,30478,30477,30479,30482,30480,30481,30482,30482,30482,30480,30478,30482,30483,30482,30485,30487,30488,30488,30490,30490,30489,30488,30480,30482,30486,30484,30485,30488,30489,30491,30491,30492,30493,30495,30497,30500,30508,30515,30516,30519,30508,30508,30508],"forks":[2294,2293,2292,2292,2273,2274,2274,2274,2274,2274,2273,2273,2273,2273,2274,2273,2274,2276,2277,2277,2277,2278,2279,2281,2279,2278,2278,2280,2281,2280,2272,2271,2271,2271,2271,2272,2272,2272,2272,2269,2269,2268,2268,2270,2270,2261,2221,2221,2220,2220,2220,2219,2218,2218,2217,2216,2216,2216,2216,2216,2214,2213,2212,2211,2205,2204,2232],"watchers":[278,279,279,279,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,273,273,273,273,273,272,272,272,272,272,272,272,272,272,272,272,272,272,272,272,266,262,262,262,256,256,256,256,256,256,256,256,256,256,256,null,256,256,256,255,255,255],"issues_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,8,8,8,8,8,8],"prs_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,159,159,159,159,159,158]},"boards":{"daily_forks":182},"same_owner":[{"full_name":"spf13/cobra","name":"cobra","shard":"1","boards":{"daily_forks":162,"debut":64}},{"full_name":"spf13/spf13-vim","name":"spf13-vim","shard":"1","boards":{}}],"issues":[{"number":1777,"title":"Unclear doc","comments":11,"created_at":"2024-03-03T14:39:21Z"},{"number":2095,"title":"Move watcher initilization in Watch Config out of goroutine and panic on failure instead of os.Exit","comments":8,"created_at":"2025-11-21T20:06:10Z"},{"number":2006,"title":"Document the new file search API","comments":5,"created_at":"2025-03-26T06:42:55Z"},{"number":1855,"title":"Deprecate the global Viper instance","comments":3,"created_at":"2024-06-05T07:31:58Z"},{"number":2161,"title":"Expose resolved value provenance and the effective environment variable name","comments":1,"created_at":"2026-10-12T09:14:56Z"},{"number":772,"title":"Viper 2","comments":1,"created_at":"2019-09-27T15:25:25Z"},{"number":1755,"title":"Call for testers","comments":0,"created_at":"2024-02-09T00:22:49Z"},{"number":1046,"title":"[RFC] Config provider mechanism","comments":0,"created_at":"2020-12-10T19:13:24Z"}],"discussions":[{"number":2148,"title":"How can an explicitly empty environment variable override a default? (worked example)","comments":1,"category":"Q&A","created_at":"2026-09-05T11:18:04Z"},{"number":2134,"title":"[removed]","comments":0,"category":"Show and tell","created_at":"2026-06-10T13:31:09Z"},{"number":2108,"title":"Changenotes — free AI changelog generator for viper","comments":0,"category":"General","created_at":"2026-03-17T06:07:21Z"},{"number":2085,"title":"Error when running the make lint command","comments":1,"category":"Q&A","created_at":"2025-10-14T00:29:12Z"},{"number":2049,"title":"Will there be a new release soon?","comments":2,"category":"Q&A","created_at":"2025-08-21T18:04:42Z"},{"number":2037,"title":"How do you unmarshal environment variables _N_ directly to slice?","comments":0,"category":"General","created_at":"2025-07-20T02:10:08Z"},{"number":2034,"title":"usage of gopkg.in/yaml.v3 is conflicting with go.yaml.in/yaml/v3","comments":1,"category":"Q&A","created_at":"2025-07-15T07:39:18Z"},{"number":2023,"title":"为什么这个解析报错","comments":0,"category":"Q&A","created_at":"2025-06-06T07:51:45Z"}],"latest_release":{"name":"v1.21.0","tag":"v1.21.0","published_at":"2025-09-08T16:58:23Z","body":"<!-- Release notes generated using configuration in .github/release.yml at v1.21.0 -->\r\n\r\n## What's Changed\r\n### Enhancements 🚀\r\n* Add support for flags pflag.BoolSlice, pflag.UintSlice and pflag.Float64Slice by @nmvalera in https://github.com/spf13/viper/pull/2015\r\n* feat: use maintained yaml library by @sagikazarmark in https://github.com/spf13/viper/pull/2040\r\n### Bug Fixes 🐛\r\n* fix(config): get config type from v.configType or config file ext by @GuillaumeBAECHLER in https://github.com/spf13/viper/pull/2003\r\n* fix: config type check when loading any config by @sagikazarmark in https://github.com/spf13/viper/pull/2007\r\n### Dependency Updates ⬆️\r\n* Update dependencies by @sagikazarmark in https://github.com/spf13/viper/pull/1993\r\n* build(deps): bump github.com/spf13/cast from 1.7.1 to 1.8.0 by @dependabot[bot] in https://github.com/spf13/viper/pull/2017\r\n* build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.3 to 2.2.4 by @dependabot[bot] in https://github.com/spf13/viper/pull/2013\r\n* build(deps): bump github.com/sagikazarmark/locafero from 0.8.0 to 0.9.0 by @dependabot[bot] in https://github.com/spf13/viper/pull/2008\r\n* build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 in /remote by @dependabot[bot] in https://github.com/spf13/viper/pull/2016\r\n* build(deps): bump github.com/spf13/cast from 1.8.0 to 1.9.2 by @dependabot[bot] in https://github.com/spf13/viper/pull/2020\r\n* build(deps): bump github.com/go-viper/mapstructure/v2 from 2.2.1 to 2.3.0 by @dependabot[bot] in https://github.com/spf13/viper/pull/2028\r\n* build(deps): bump github.com/go-viper/mapstructure/v2 from 2.3.0 to 2.4.0 by @dependabot[bot] in https://github.com/spf13/viper/pull/2035\r\n* build(deps): bump github.com/spf13/pflag from 1.0.6 to 1.0.7 by @dependabot[bot] in https://github.com/spf13/viper/pull/2036\r\n* build(deps): bump github.com/fsnotify/fsnotify from 1.8.0 to 1.9.0 by @dependabot[bot] in https://github.com/spf13/viper/pull/2012\r\n* build(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.1 by @dependabot[bot] in https://github.com/spf13/viper/pull/2052\r\n* build(deps): bump github.com/go-viper/mapstructure/v2 from 2.3.0 to 2.4.0 in /remote by @dependabot[bot] in https://github.com/spf13/viper/pull/2048\r\n* build(deps): bump github.com/spf13/pflag from 1.0.7 to 1.0.10 by @dependabot[bot] in https://github.com/spf13/viper/pull/2056\r\n* chore: update dependencies by @sagikazarmark in https://github.com/spf13/viper/pull/2057\r\n### Other Changes\r\n* Update update guide with `mapstructure` package replacement. by @aldas in https://github.com/spf13/viper/pull/2004\r\n* refactor: use the built-in max/min to simplify the code by @yingshanghuangqiao in https://github.com/spf13/viper/pull/2029\r\n\r\n## New Contributors\r\n* @GuillaumeBAECHLER made their first contribution in https://github.com/spf13/viper/pull/2003\r\n* @aldas made their first contribution in https://github.com/spf13/viper/pull/2004\r\n* @nmvalera made their first contribution in https://github.com/spf13/viper/pull/2015\r\n* @yingshanghuangqiao made their first contribution in https://github.com/spf13/viper/pull/2029\r\n* @ccoVeille made their first contribution in https://github.com/spf13/viper/pull/2046\r\n* @spacez320 made their first contribution in https://github.com/spf13/viper/pull/2050\r\n\r\n**Full Changelog**: https://github.com/spf13/viper/compare/v1.20.0...v1.21.0","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}