摘要:
// interface package main import ( "fmt" ) //定义一个接口,接口名字Inter,接口的方法集有2个方法 type Inter interface { //声明方法 Ping() Pang() } //方法的定义 //Ping方法的接收者(适用对象)是St类型 func (St) Ping() { fmt.Println("ping") ... 阅读全文
posted @ 2019-03-29 15:05
bleer
阅读(253)
评论(0)
推荐(0)

浙公网安备 33010602011771号