30_Go基础(接口)
摘要:
package main import ( "errors" "fmt" "reflect" "strconv" ) // 1. 接口存在的意义 type Cat struct{} func (c Cat) say() { fmt.Println("喵喵喵") } type Dog struct{} 阅读全文
posted @ 2021-11-03 12:20 芦苇の 阅读(37) 评论(0) 推荐(0) 编辑