equal
deleted
inserted
replaced
6 ![Viper](.github/logo.png?raw=true) |
6 ![Viper](.github/logo.png?raw=true) |
7 |
7 |
8 [![Mentioned in Awesome Go](https://awesome.re/mentioned-badge-flat.svg)](https://github.com/avelino/awesome-go#configuration) |
8 [![Mentioned in Awesome Go](https://awesome.re/mentioned-badge-flat.svg)](https://github.com/avelino/awesome-go#configuration) |
9 [![run on repl.it](https://repl.it/badge/github/sagikazarmark/Viper-example)](https://repl.it/@sagikazarmark/Viper-example#main.go) |
9 [![run on repl.it](https://repl.it/badge/github/sagikazarmark/Viper-example)](https://repl.it/@sagikazarmark/Viper-example#main.go) |
10 |
10 |
11 [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/spf13/viper/CI?style=flat-square)](https://github.com/spf13/viper/actions?query=workflow%3ACI) |
11 [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/spf13/viper/ci.yaml?branch=master&style=flat-square)](https://github.com/spf13/viper/actions?query=workflow%3ACI) |
12 [![Join the chat at https://gitter.im/spf13/viper](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/spf13/viper?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
12 [![Join the chat at https://gitter.im/spf13/viper](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/spf13/viper?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
13 [![Go Report Card](https://goreportcard.com/badge/github.com/spf13/viper?style=flat-square)](https://goreportcard.com/report/github.com/spf13/viper) |
13 [![Go Report Card](https://goreportcard.com/badge/github.com/spf13/viper?style=flat-square)](https://goreportcard.com/report/github.com/spf13/viper) |
14 ![Go Version](https://img.shields.io/badge/go%20version-%3E=1.15-61CFDD.svg?style=flat-square) |
14 ![Go Version](https://img.shields.io/badge/go%20version-%3E=1.16-61CFDD.svg?style=flat-square) |
15 [![PkgGoDev](https://pkg.go.dev/badge/mod/github.com/spf13/viper)](https://pkg.go.dev/mod/github.com/spf13/viper) |
15 [![PkgGoDev](https://pkg.go.dev/badge/mod/github.com/spf13/viper)](https://pkg.go.dev/mod/github.com/spf13/viper) |
16 |
16 |
17 **Go configuration with fangs!** |
17 **Go configuration with fangs!** |
18 |
18 |
19 Many Go projects are built using Viper including: |
19 Many Go projects are built using Viper including: |
38 **Note:** Viper uses [Go Modules](https://github.com/golang/go/wiki/Modules) to manage dependencies. |
38 **Note:** Viper uses [Go Modules](https://github.com/golang/go/wiki/Modules) to manage dependencies. |
39 |
39 |
40 |
40 |
41 ## What is Viper? |
41 ## What is Viper? |
42 |
42 |
43 Viper is a complete configuration solution for Go applications including 12-Factor apps. It is designed |
43 Viper is a complete configuration solution for Go applications including [12-Factor apps](https://12factor.net/#the_twelve_factors). |
44 to work within an application, and can handle all types of configuration needs |
44 It is designed to work within an application, and can handle all types of configuration needs |
45 and formats. It supports: |
45 and formats. It supports: |
46 |
46 |
47 * setting defaults |
47 * setting defaults |
48 * reading from JSON, TOML, YAML, HCL, envfile and Java properties config files |
48 * reading from JSON, TOML, YAML, HCL, envfile and Java properties config files |
49 * live watching and re-reading of config files (optional) |
49 * live watching and re-reading of config files (optional) |