摘要:
package main import "fmt" type animal interface { Eat() } type cat struct { } func (c cat) Eat() { fmt.Println("Cat like to eat fish!") } var _ animal = (*cat)(nil) func main() { fmt.Println("test sta 阅读全文
posted @ 2019-12-10 16:21
无名使者
阅读(128)
评论(0)
推荐(0)