mirror of
https://github.com/spf13/viper
synced 2024-11-05 04:37:02 +00:00
doc: add a note about concurent Get/Set to godoc
This commit is contained in:
parent
cb41ae0ab8
commit
727a41c38a
1 changed files with 2 additions and 0 deletions
2
viper.go
2
viper.go
|
@ -176,6 +176,8 @@ func DecodeHook(hook mapstructure.DecodeHookFunc) DecoderConfigOption {
|
||||||
// "user": "root",
|
// "user": "root",
|
||||||
// "endpoint": "https://localhost"
|
// "endpoint": "https://localhost"
|
||||||
// }
|
// }
|
||||||
|
//
|
||||||
|
// Note: Vipers are not safe for concurrent Get() and Set() operations.
|
||||||
type Viper struct {
|
type Viper struct {
|
||||||
// Delimiter that separates a list of keys
|
// Delimiter that separates a list of keys
|
||||||
// used to access a nested value in one go
|
// used to access a nested value in one go
|
||||||
|
|
Loading…
Reference in a new issue