forked from mirrors/gotosocial
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
|
|
}
|