Skip to content

Conversation

eruca
Copy link
Contributor

@eruca eruca commented Apr 26, 2017

我依据自己的使用经验,稍加修改了一下:
1.减少代码量,增加同一个Iterator下多个key的读取
2.如果必须读取的Key缺失,会返回错误

@eruca eruca closed this Apr 26, 2017
@eruca
Copy link
Contributor Author

eruca commented Apr 26, 2017

发现把前面的代码发过去了,我再pull 一下啊

@eruca eruca reopened this Apr 26, 2017
@taowen
Copy link
Contributor

taowen commented Apr 26, 2017

这个和Any的区别是啥?Any不是也可以按path取值么?

Get(path ...interface{}) Any

在Any上搞一个类似这样的接口?

GetMany(paths ...*Path) []Any

不过这个和调用 Get 多次有啥区别呢

@eruca
Copy link
Contributor Author

eruca commented Apr 27, 2017

恩,结果上确实没有区别,前面Any没有看到怎么用,所以自己使用的过程中未注意到

@eruca eruca closed this Apr 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants