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