mirror of https://github.com/spf13/viper.git
doc: add a note about concurent Get/Set to godoc
This commit is contained in:
parent
cb41ae0ab8
commit
727a41c38a
2
viper.go
2
viper.go
|
@ -176,6 +176,8 @@ func DecodeHook(hook mapstructure.DecodeHookFunc) DecoderConfigOption {
|
|||
// "user": "root",
|
||||
// "endpoint": "https://localhost"
|
||||
// }
|
||||
//
|
||||
// Note: Vipers are not safe for concurrent Get() and Set() operations.
|
||||
type Viper struct {
|
||||
// Delimiter that separates a list of keys
|
||||
// used to access a nested value in one go
|
||||
|
|
Loading…
Reference in New Issue