You know how much layers there are under hello.go?
You know how much layers there are under hello.go?
In Go “==” operator works for everything by default, I like it more:
type A struct {
Name string
Quality int
}
func main() {
var x A
var y A
fmt.Printf("%v", x == y)
}
(if all you want is to compare all corresponding fields which you usually want)
cannot create comment: post not found