summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-09-19 00:37:11 -0400
committerrsiddharth <s@ricketyspace.net>2020-09-19 00:37:11 -0400
commit1c2c99b49fb8cb6474532a9e7a22f1916c56edc0 (patch)
tree7edcfbaef48c109691aac1cf834a8127f5925205
parent4297908fc8806b1aa0af5f2d3469a8f2c6832e46 (diff)
cedar.go: add Entry.in
-rw-r--r--cedar.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/cedar.go b/cedar.go
index 0c20788..5bc50ff 100644
--- a/cedar.go
+++ b/cedar.go
@@ -125,4 +125,13 @@ func (cache Ids) save() error {
return nil
}
+func (entry Entry) in(cache Ids) bool {
+ for i := 0; i < len(cache); i++ {
+ if entry.Id == cache[i] {
+ return true
+ }
+ }
+ return false
+}
+
func main() {}