摘要: 接口 【接口的概念】在Go语言中接口(interface)是一种类型,一种抽象的类型 【结构体实现接口方法】 package main import "fmt" type sayer interface { Say() string } type Cat struct{} func (c Cat) 阅读全文
posted @ 2020-10-21 12:25 longzhankunlun 阅读(155) 评论(0) 推荐(0) 编辑