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