You can't compare maps directly with ==. In Go +, use maps.Equal:
import "maps"
a := map[string]int{"x": 1, "y": 2}
b := map[string]int{"x": 1, "y": 2}
fmt.Println(maps.Equal(a, b)) // true
In older versions, compare manually by checking length and each key-value pair.