Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 256 Bytes

README.md

File metadata and controls

8 lines (7 loc) · 256 Bytes

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"}}