How to setup a web application using flag and viper for mutiple environments?

I am new to the go programming language and wish to set up a web application
that utlize viper package and flag to parse Environment variables to my application.

Example

 $ go run main.go -env=production

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.