mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-12-19 07:31:53 +03:00
2dc9fc1626
* start moving to bun * changing more stuff * more * and yet more * tests passing * seems stable now * more big changes * small fix * little fixes
16 lines
245 B
Go
16 lines
245 B
Go
package internal
|
|
|
|
type Flag uint64
|
|
|
|
func (flag Flag) Has(other Flag) bool {
|
|
return flag&other == other
|
|
}
|
|
|
|
func (flag Flag) Set(other Flag) Flag {
|
|
return flag | other
|
|
}
|
|
|
|
func (flag Flag) Remove(other Flag) Flag {
|
|
flag &= ^other
|
|
return flag
|
|
}
|