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 static compile") }