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 Go Workspace
- Run Application
$ cd go-config-example
$ go run main.go
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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.
$ cd go-config-example
$ go run main.go