18 lines
171 B
Go
18 lines
171 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
type I interface {
|
|
M()
|
|
}
|
|
|
|
func main() {
|
|
var i I
|
|
describe(i)
|
|
i.M()
|
|
}
|
|
|
|
func describe(i I) {
|
|
fmt.Printf("(%v, %T)\n", i, i)
|
|
}
|