$ 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"}}
-
Notifications
You must be signed in to change notification settings - Fork 4
tmatias/viper-toml-unmarshal
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 0
No packages published