mirror of
https://github.com/spf13/viper
synced 2025-05-07 04:37:20 +00:00
docs: add set subset KV example
This commit is contained in:
parent
96c5c0083f
commit
2f600c9a71
1 changed files with 1 additions and 0 deletions
|
@ -222,6 +222,7 @@ These could be from a command line flag, or from your own application logic.
|
|||
```go
|
||||
viper.Set("Verbose", true)
|
||||
viper.Set("LogFile", LogFile)
|
||||
viper.Set("host.port", 5899) // set subset
|
||||
```
|
||||
|
||||
### Registering and Using Aliases
|
||||
|
|
Loading…
Add table
Reference in a new issue