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

Guess The Number With Python

My first contact with…

Snoop around your visual tree

MYKEY Weekly Report 01 (May 25th~May 31st)

You Don’t Have To Be Smart To Solve A Rubik’s Cube

Rails: form_with vs. form_for vs. form_tag

GARI Project Weekly Updates #2 {12th-18th December}

Four Layers of Digital Asset Management

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

How To Periodically Check MongoDB Replica Set Status

MongoDB Change Streams Implementation in Golang

How To Install And Setup Go Language On Ubuntu (Complete Guide)

How To Install And Setup Go Language On Ubuntu (Complete Guide)