minus-squareakkajdh999@programming.devtoProgrammer Humor@lemmy.ml•I love Rustlinkfedilinkarrow-up10·6 hours agoIn 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) linkfedilink
minus-squareakkajdh999@programming.devtoProgramming@programming.dev•Cool SQL editor that I found today, licensed under GPL 3linkfedilinkarrow-up4arrow-down3·1 year agoBecause electron linkfedilink
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)