Golang 接口与多态 Jackey Golang 2020-09-01 2,993 次浏览 Golang, 多态, 接口 package main import ( "fmt" ) type A interface { Get() } type B struct { } func (b *B) Get () { fmt.Println("b") } type C struct { } func (c *C) Get () { fmt.Println("c") } f...