Sign in
go
/
website
/
4fc81e6d7c05b3c955bea09c6c3ee9858ac20e4d
/
.
/
_content
/
tour
/
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)
}