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