/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
origin
/
...
/
spf13
/
viper
/
..
.editorconfig
Bump(*): o/k 1.20.0
6 лет назад
.gitignore
Bump(*): o/k 1.20.0
6 лет назад
.golangci.yml
go mod tidy && go mod vendor
5 лет назад
LICENSE
bump(*): Kubernetes 1.6.1
9 лет назад
Makefile
go mod tidy && go mod vendor
5 лет назад
README.md
go mod tidy && go mod vendor
5 лет назад
TROUBLESHOOTING.md
go mod tidy && go mod vendor
5 лет назад
flags.go
Bump(*): o/k 1.20.0
6 лет назад
util.go
go mod tidy && go mod vendor
5 лет назад
viper.go
go mod tidy && go mod vendor
5 лет назад
watch.go
go mod tidy && go mod vendor
5 лет назад
watch_wasm.go
go mod tidy && go mod vendor
5 лет назад
Install
What is Viper?
Why Viper?
Putting Values into Viper
Establishing Defaults
Reading Config Files
Writing Config Files
Watching and re-reading config files
Reading Config from io.Reader
Setting Overrides
Registering and Using Aliases
Working with Environment Variables
Env example
Working with Flags
Flag interfaces
Remote Key/Value Store Support
Remote Key/Value Store Example - Unencrypted
etcd
Consul
Firestore
Remote Key/Value Store Example - Encrypted
Watching Changes in etcd - Unencrypted
Getting Values From Viper
Accessing nested keys
Extracting a sub-tree
Unmarshaling
Marshalling to string
Viper or Vipers?
Working with multiple vipers
Q & A
Why is it called “Viper”?
Why is it called “Cobra”?
Does Viper support case sensitive keys?
Is it safe to concurrently read and write to a viper?
Troubleshooting
README.md