is there short version in Go to reverse a boolean?
instead of:
b := true if b { b = false } else { b = true }
Yes, just do b = !b. Here is a playground link where you can see it in action.
b = !b