摘要: 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 阅读全文