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