Added more GET functions for viper
[ric-plt/xapp-frame.git] / 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