摘要: interface interface{} 接口、interface{} 类型很多人都会混淆。interface{} 类型是没有方法的接口。由于没有 implements 关键字,所以说所有的类型都至少实现了 0 个方法,所有类型都实现了空接口。这意味着,如果编写一个函数以 interface{} 阅读全文
posted @ 2021-05-26 20:17 牛奔 阅读(9519) 评论(0) 推荐(0) 编辑