Sign in
go
/
website
/
ca1fc50a3bcb2e30da453bcc132e9aed9387a3b1
/
.
/
_content
/
tour
/
methods
/
nil-interface-values.go
blob: 55dbf86249ccdfde57d586d8d3c2b62ff6b25e25 [
file
] [
log
] [
blame
]
// +build no-run OMIT
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)
}