This commit is contained in:
2013-02-11 23:17:12 -05:00
parent 54a0359897
commit 61d5532e33
6 changed files with 69 additions and 39 deletions

View File

@ -3,7 +3,7 @@ package main
type EventType uint32
const (
UPDATE = 1 << iota
UPDATE = 1 << iota
DELETE
)
@ -14,9 +14,9 @@ type Event struct {
}
func (e Event) IsUpdate() bool {
return e.Type & UPDATE == UPDATE
return e.Type&UPDATE == UPDATE
}
func (e Event) IsDelete() bool {
return e.Type & DELETE == DELETE
return e.Type&DELETE == DELETE
}