package internal type Flag uint64 func (flag Flag) Has(other Flag) bool { return flag&other == other } func (flag *Flag) Set(other Flag) { *flag = *flag | other } func (flag *Flag) Remove(other Flag) { *flag &= ^other }