mirror of
https://github.com/spf13/viper
synced 2024-12-23 03:57:01 +00:00
Document the use of struct tags to map the dissimilar fields.
This commit is contained in:
parent
e37b56e207
commit
e197beec2f
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