Viper is a complete configuration solution for Go applications including 12-Factor apps. It is designed to work within an application, and can handle all types of configuration needs and formats. It supports 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, and setting explicit values. iper can be thought of as a registry for all of your applications configuration needs. When building a modern application, you don’t want to worry about configuration file formats; you want to focus on building awesome software. Viper is here to help with that.

Features

  • Find, load, and unmarshal a configuration file in JSON, TOML, YAML, HCL, INI, envfile or Java properties formats
  • Provide a mechanism to set default values for your different configuration options
  • Provide a mechanism to set override values for options specified through command line flags
  • Provide an alias system to easily rename parameters without breaking existing code
  • Make it easy to tell the difference between when a user has provided a command line or config file which is the same as the default
  • Viper requires minimal configuration so it knows where to look for config files

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Viper

Viper Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Viper!

Additional Project Details

Programming Language

Go

Related Categories

Go File Managers, Go Configuration Management Database (CMDB) Software

Registered

2021-03-29