We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2b4b15 commit 673e427Copy full SHA for 673e427
README.md
@@ -65,7 +65,7 @@ func main() {
65
### 实时同步配置
66
启动一个goroutine实时同步配置, errorCh返回notifications/v2非httpcode(200)的错误信息
67
```
68
-a, err := agollo.New("localhost:8080", "your_appid", agollo.AutoFetchOnCacheMiss())
+a, err := agollo.New("localhost:8080", "your_appid", agollo.PreloadNamespaces("application", "test.json"))
69
// error handle...
70
71
errorCh := a.Start() // Start后会启动goroutine监听变化,并更新agollo对象内的配置cache
0 commit comments