Sign in
go
/
website
/
25907e1a9659bf8d741f2a474a7c4ca6b818a036
/
.
/
_content
/
talks
/
2015
/
tricks
/
compare.go
blob: 89ca5d3d038c22306afbc5fb8203a1ee95af6fc7 [
file
] [
log
] [
blame
]
// +build ignore
package main
import "fmt"
func main() {
// BEGIN OMIT
var a, b int = 42, 42
fmt.Println(a == b)
var i, j interface{} = a, b
fmt.Println(i == j)
var s, t struct{ i interface{} }
s.i, t.i = a, b
fmt.Println(s == t)
// END OMIT
}