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