摘要: Effective Go 里的一个小节 Interfaces and methods (https://golang.org/doc/effective_go.html#interface_methods) 介绍了把 method 附加到 function 上的方法。 1. 首先,创建一种 type 阅读全文
posted @ 2017-03-23 20:49 AHUI-2017 阅读(181) 评论(0) 推荐(0) 编辑