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

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
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