Added more GET functions for viper 77/1077/1 v0.0.16
authorMohamed Abukar <abukar.mohamed@nokia.com>
Mon, 7 Oct 2019 06:42:42 +0000 (09:42 +0300)
committerMohamed Abukar <abukar.mohamed@nokia.com>
Mon, 7 Oct 2019 06:42:53 +0000 (09:42 +0300)
Author: Radhakrishnan Anand <anand.radhakrishnan@nokia.com>

Change-Id: I35501fcbfc976b054a2d07039010d2e9c00a33c1
Signed-off-by: Mohamed Abukar <abukar.mohamed@nokia.com>
pkg/xapp/config.go

index 1f90a1a..404a9b9 100755 (executable)
@@ -88,3 +88,15 @@ func (*Configurator) GetUint32(key string) uint32 {
 func (*Configurator) GetBool(key string) bool {
        return viper.GetBool(key)
 }
+
+func (*Configurator) Get(key string) interface{} {
+       return viper.Get(key)
+}
+
+func (*Configurator) GetStringSlice(key string) []string {
+       return viper.GetStringSlice(key)
+}
+
+func (*Configurator) GetStringMap(key string) map[string]interface{} {
+       return viper.GetStringMap(key)
+}
\ No newline at end of file