mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-06 00:26:52 +08:00
10 lines
200 B
Go
10 lines
200 B
Go
package astiav
|
|
|
|
type flags int
|
|
|
|
func (fs flags) add(f int) int { return int(fs) | f }
|
|
|
|
func (fs flags) del(f int) int { return int(fs) &^ f }
|
|
|
|
func (fs flags) has(f int) bool { return int(fs)&f > 0 }
|