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
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
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