What is the difference between these two structures, except that they are not considered equivalent?
package main func main() {} func f1(s struct{a int;b int}) { f2(s) } func f2(s struct{b int;a int}) {}
$ go run a.go
Note: this compiles:
package main func main() {} func f1(s struct{a int;b int}) { f2(s) } func f2(s struct{a int;b int}) {}
source share