mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-29 23:22:45 +00:00
88979b35d4
* update bun + sqlite versions * step bun to v1.1.3
17 lines
241 B
Go
17 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
|
|
}
|