1
0
mirror of https://github.com/fumiama/orbyte.git synced 2026-06-12 06:00:32 +08:00

feat: add Ignore to Item

This commit is contained in:
源文雨
2025-05-12 23:59:04 +09:00
parent 765c970d70
commit d33f1ca53e
4 changed files with 38 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ const (
statusisbuffered = 1 << iota
statusdestroyed
statusinsyncop
statushasignored
)
type status uintptr
@@ -96,3 +97,11 @@ func (c *status) setdestroyed(v bool) {
func (c *status) setinsyncop(v bool) bool {
return c.setboolunique(v, statusinsyncop)
}
func (c *status) hasignored() bool {
return c.loadbool(statushasignored)
}
func (c *status) setignored(v bool) {
c.setbool(v, statushasignored)
}