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

Why Managed Kubernetes Enables Team Success

Zero Trust Policy — What, Why, & How Lenskart does it? [Part 2]

How to learn Machine Learning as an amateur? (1)

DevSecOps: Enable it on your Software Development Life Cycle

Recovering an overwritten script that’’s still in execution from memory

Memoji — welcome to Android

15 Essential Linux Command Line Tips and Tricks

Hybrid Cloud Update and Life as a Cloud Advocate

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

Golang productivity hack part 2: IDE plugins

Echo 101: Manage config files in Cloud Native way

How Golang DB migration tool work?

Limit Unbound Concurrency in Go (Part 2)