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