1
0
Fork 0
mirror of https://github.com/spf13/viper synced 2025-08-20 17:42:00 +00:00

docs: add set subset KV example

This commit is contained in:
yhliyr 2023-09-27 14:55:52 +08:00 committed by Márk Sági-Kazár
commit 287507c0b5

View file

@ -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