mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-25 09:51:01 +00:00
88979b35d4
* update bun + sqlite versions * step bun to v1.1.3
16 lines
241 B
Go
16 lines
241 B
Go
package internal
|
|
|
|
type Flag uint64
|
|
|
|
func (flag Flag) Has(other Flag) bool {
|
|
return flag&other != 0
|
|
}
|
|
|
|
func (flag Flag) Set(other Flag) Flag {
|
|
return flag | other
|
|
}
|
|
|
|
func (flag Flag) Remove(other Flag) Flag {
|
|
flag &= ^other
|
|
return flag
|
|
}
|