Sign in
go
/
tour
/
97f0ee8b016282b578395cd0dda1f9c3aabf81ec
/
.
/
content
/
methods
/
empty-interface.go
blob: 10e9861afc4ad72bad61326d511a24633564009b [
file
] [
log
] [
blame
]
// +build OMIT
package main
import "fmt"
func main() {
var i interface{}
describe(i)
i = 42
describe(i)
i = "hello"
describe(i)
}
func describe(i interface{}) {
fmt.Printf("(%v, %T)\n", i, i)
}