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