|
|
@ -20,7 +20,7 @@ Golang configuration,use to Viper reading from remote Nacos config systems. Vipe
|
|
|
|
_ = remote_viper.ReadRemoteConfig() //sync get remote configs to remote_viper instance memory . for example , remote_viper.GetString(key)
|
|
|
|
_ = remote_viper.ReadRemoteConfig() //sync get remote configs to remote_viper instance memory . for example , remote_viper.GetString(key)
|
|
|
|
_ = remote_viper.WatchRemoteConfigOnChannel() //async watch , auto refresh configs.
|
|
|
|
_ = remote_viper.WatchRemoteConfigOnChannel() //async watch , auto refresh configs.
|
|
|
|
|
|
|
|
|
|
|
|
appName := remote_viper.GetString("key")
|
|
|
|
appName := remote_viper.GetString("key") // sync get config by key
|
|
|
|
|
|
|
|
|
|
|
|
fmt.Println(appName)
|
|
|
|
fmt.Println(appName)
|
|
|
|
```
|
|
|
|
```
|
|
|
|