Sign in
go
/
website
/
9a8a0a00467699d561fe7f4f44b7d118f8675a65
/
.
/
_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)
}