2015年7月17日
摘要: 问题概述Golang的interface,和别的语言是不同的。它不需要显式的implements,只要某个struct实现了interface里的所有函数,编译器会自动认为它实现了这个interface。第一次看到这种设计的时候,我的第一反应是:What the fuck?这种奇葩的设计方式,和主流... 阅读全文
posted @ 2015-07-17 15:46 nanoix9 阅读(2041) 评论(5) 推荐(1) 编辑