• Silvano Cerza's avatar
    Fix gRPC interface function to merge configs (#1164) · c7403ed2
    Silvano Cerza authored
    * Fix gRPC interface function to merge configs
    
    This fix adds the possibility to set empty values with the Merge gRPC
    function, previously they would have been ignored.
    
    Because of this change I had also to modify the GetValue() function
    since it would first check if the value was set using the
    Viper.InConfig() function that wouldn't check for values set with
    Viper.Set().
    
    * [skip changelog] Add clearer example to client_example
    
    * [skip changelog] Simplified some code and enhance a test
    c7403ed2
settings_test.go 5.17 KB