Sign in
go
/
talks
/
a07c284bcf333dc17a1489fd441e8fccf1e01c2a
/
.
/
content
/
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
}