diff options
author | rsiddharth <s@ricketyspace.net> | 2020-09-19 00:37:11 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2020-09-19 00:37:11 -0400 |
commit | 1c2c99b49fb8cb6474532a9e7a22f1916c56edc0 (patch) | |
tree | 7edcfbaef48c109691aac1cf834a8127f5925205 | |
parent | 4297908fc8806b1aa0af5f2d3469a8f2c6832e46 (diff) |
cedar.go: add Entry.in
-rw-r--r-- | cedar.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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() {} |