linux_china技术雷达linux_china技术雷达
试用

Viper是一款基于Go语言的应用程序配置解决方案, 依据12-Factor apps的Config配置设计。

主要包括以下特性:

  • setting defaults
  • reading from JSON, TOML, YAML, HCL, envfile and Java properties config files
  • live watching and re-reading of config files (optional)
  • reading from environment variables
  • reading from remote config systems (etcd or Consul), and watching changes
  • reading from command line flags
  • reading from buffer
  • setting explicit values

Viper & Friends