mirror of
https://github.com/uptrace/go-clickhouse.git
synced 2025-06-08 23:26:11 +02:00
16 lines
227 B
Go
16 lines
227 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 = *flag | other
|
|
}
|
|
|
|
func (flag *Flag) Remove(other Flag) {
|
|
*flag &= ^other
|
|
}
|