摘要: Go 中的 interface 所具有的最基本的功能:作为一种 abstract type,实现各种 concrete type 的行为统一。 interface是一种类型。只有是实例化后才能调用interface中的方法,没毛病。 interface的定义 基本形式如下; interface内部由 阅读全文
posted @ 2018-05-18 20:48 guhowo 阅读(463) 评论(0) 推荐(0) 编辑