You can compare arrays with == if the element type is comparable:
a := [3]int{1, 2, 3}
b := [3]int{1, 2, 3}
c := [3]int{1, 2, 4}
fmt.Println(a == b) // true
fmt.Println(a == c) // false
Arrays must have the same type. []int and []int cannot be compared.