mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
Document the use of struct tags to map the dissimilar fields.
This commit is contained in:
parent
87d443c19b
commit
823bc1371b
1 changed files with 1 additions and 0 deletions
|
@ -433,6 +433,7 @@ Example:
|
||||||
type config struct {
|
type config struct {
|
||||||
Port int
|
Port int
|
||||||
Name string
|
Name string
|
||||||
|
PathMap string `mapstructure:"path_map"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var C config
|
var C config
|
||||||
|
|
Loading…
Reference in a new issue