Sign in
go
/
talks
/
42334b6f2551955b5e77dbcc47b0d511c24fa08e
/
.
/
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
}