1
0
mirror of https://github.com/uptrace/go-clickhouse.git synced 2025-06-06 23:16:18 +02:00

16 lines
227 B
Go
Raw Normal View History

2022-01-23 09:36:24 +02:00
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
}