func (b *Bool) Toggle() (old bool) {
	for {
		old := b.Load()
		if b.CAS(old, !old) {
			return old
		}
	}
}
Toggle atomically negates the Boolean and returns the previous value.
package atomic
import (
	"strconv"
)
func truthy(n uint32) bool {
	return n == 1
}
func boolToInt(b bool) uint32 {
	if b {
		return 1
	}
	return 0
}