Is there no XOR operator for booleans in golang?
I was trying to do something like b1^b2 but it said it wasn\'t defined for booleans.
b1^b2
With booleans an xor is simply:
if boolA != boolB { }
In this context not equal to performs the same function as xor: the statement can only be true if one of the booleans is true and one is false.
not equal to
xor