Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何获取到全部配置项? #25

Closed
lemss opened this issue Jun 1, 2018 · 11 comments
Closed

如何获取到全部配置项? #25

lemss opened this issue Jun 1, 2018 · 11 comments
Assignees
Labels

Comments

@lemss
Copy link

lemss commented Jun 1, 2018

如题,项目需求,需要在APP启动的时候获取到全部的配置项和值,进行定制操作,但是用GetStringValue()只能获取到指定key项的value,在不知道所有key的情况下有方法能一次拿到吗?

另外,同样也遇到了这个bug:https://github.com/zouyx/agollo/issues/23 ,希望能尽快解决,感谢!

@zouyx zouyx self-assigned this Jun 1, 2018
@zouyx
Copy link
Member

zouyx commented Jun 1, 2018

@lemss 暂时没有方法获取全部值,你可以参考 方法
重新包装方法出来使用。

另外关于 #23 ,请问目前你使用的Apollo版本是什么?我以前使用那个是没有这种问题的。

@zouyx
Copy link
Member

zouyx commented Jun 1, 2018

其他组件的版本也提供一下

@lemss
Copy link
Author

lemss commented Jun 4, 2018

刚开始用,直接go get的包,应该都是最新的
golang版本是1.10.2

@lemss
Copy link
Author

lemss commented Jun 4, 2018

确认了一下,agollo的版本是1.4,使用下面的命令安装的,应该都是最新版:

go get -u github.com/cihub/seelog
go get -u github.com/coocood/freecache
go get -u github.com/zouyx/agollo

@zouyx
Copy link
Member

zouyx commented Jun 4, 2018

@lemss 不好意思,可能你没看太清。。。我说的是Apollo 的版本,不是agollo 😺

@lemss
Copy link
Author

lemss commented Jun 4, 2018

@zouyx 抱歉,没看清楚,Apollo用的也是最新版,0.10.2

@zouyx
Copy link
Member

zouyx commented Jun 4, 2018

@lemss 明白,我先尝试重现一下问题。

@zouyx
Copy link
Member

zouyx commented Jun 5, 2018

@lemss #23 已修复,你重新更新一下包试试

@zouyx zouyx added bug and removed question wip labels Jun 5, 2018
@lemss
Copy link
Author

lemss commented Jun 5, 2018

感谢,我这里验证也没问题了,我把问题关掉

@lemss lemss closed this as completed Jun 5, 2018
@lemss
Copy link
Author

lemss commented Jun 5, 2018

辛苦 @zouyx

@zouyx
Copy link
Member

zouyx commented Jun 5, 2018

@lemss 有问题及时反馈。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants