Using Viper With Consul to Configure Golang Applications

Photo by Austin Lowman on Unsplash

Recently I wanted to revamp one of my side projects go-quick. This project is a boilerplate web application meant to be a starting point for Go apps. Previously, I wrote a custom config package within the project to pull configuration from Environment Variables as per the 12 Factor Apps manifest. But, I wanted to expand how users can configure my project.

--

--

--

Distinguished Engineer @AmericanExpress building payments systems. Author: https://amzn.to/3kuCFpz, Thoughts, & Opinions are my own.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Rancher Labs — A journey worth mentioning

Should I upgrade my PC to Windows 11?

CUSTOM CRM WEB DEVELOPMENT FOR B2C

Introduction to Pi-Pad Attenuators — The Engineering Knowledge

vETH minting volume exceeded 10,000 ETH in 24 hours, Weekly Report 33

5 Best FREE WordPress Plugins 2020

Troubleshooting Ubuntu Installation on a Windows 10 Machine

Azure Pipelines Tips

Screenshot showing a new Azure DevOps project

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Benjamin Cane

Benjamin Cane

Distinguished Engineer @AmericanExpress building payments systems. Author: https://amzn.to/3kuCFpz, Thoughts, & Opinions are my own.

More from Medium

2 Different Ways to Implement BFS in Golang

Golang in sixty seconds — Count occurrences in a string

Using assert in go tests

Get Redis Up and Running on Docker