How to Load a .env File into a Go Struct with Viper
Introduction
When I came back to Go, I wanted to load a small configuration file into a struct. I found Viper while browsing awesome-go and tried it with an env-format file.
This example reads a .env