From 727a41c38a24844f5090d1442867b0e7226e22f4 Mon Sep 17 00:00:00 2001 From: Chris Waldon Date: Tue, 13 Apr 2021 09:12:40 -0400 Subject: [PATCH] doc: add a note about concurent Get/Set to godoc --- viper.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/viper.go b/viper.go index 6d149f641..97d5b8403 100644 --- a/viper.go +++ b/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