summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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() {}