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

Sep 22, 2017
d479696 · Sep 22, 2017

History

2 Commits
Sep 22, 2017
Sep 22, 2017
Sep 22, 2017
Sep 22, 2017
Sep 22, 2017
Sep 22, 2017

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