Skip to content

Commit

Permalink
doc: add a note about concurent Get/Set to godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
whereswaldon authored and sagikazarmark committed Apr 15, 2021
1 parent cb41ae0 commit 727a41c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions viper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 727a41c

Please sign in to comment.