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