Skip to content

An example showing how to read a TOML config file into a struct using spf13's viper

Notifications You must be signed in to change notification settings

tmatias/viper-toml-unmarshal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

viper TOML unmarshal example

$ go run main.go
host=localhost port=5432 user=postgres pass=
output=out.txt
main.Config{Db:main.DatabaseConfig{Host:"localhost", Port:"5432", User:"postgres", Pass:""}, Out:main.OutputConfig{File:"out.txt"}}

About

An example showing how to read a TOML config file into a struct using spf13's viper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages