From 9956d044940deacec5e08dfbadf8e7eea8fdeb44 Mon Sep 17 00:00:00 2001 From: Pablo Alvarez de Sotomayor Posadillo Date: Tue, 26 Jun 2018 19:42:04 -0500 Subject: [PATCH] Fix a call to Unset. --- viper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/viper.go b/viper.go index 95ca75b..3205b0f 100644 --- a/viper.go +++ b/viper.go @@ -1409,6 +1409,7 @@ func (v *Viper) Set(key string, value interface{}) { // Unset deletes a key from Viper. // Unset is case-insensitive for a key. func Unset(key string) { v.Unset(key) } + func (v *Viper) Unset(key string) { // If alias passed in, then set the proper override key = v.realKey(strings.ToLower(key))