A sample Go application that reads a TOML config file using Viper
Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
README.md
main.go

README.md

Sample Go Application using TOML and Viper

This is the code example I used in my blog post - "Handling Configuration Files in Go". This is a sample Go application that reads a TOML configuration file using Viper.

Setup

  1. Setup Go Workspace
  2. Run Application
$ cd go-config-example
$ go run main.go