From 0905a863f50d9631e6c44488b952622e75d79785 Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Sun, 1 May 2016 15:07:45 -0400 Subject: Implement delete logic --- todolist/store.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'todolist/store.go') diff --git a/todolist/store.go b/todolist/store.go index d3f42d2..94f2f5e 100644 --- a/todolist/store.go +++ b/todolist/store.go @@ -7,7 +7,8 @@ type Store interface { Add(t *Todo) Save() - //Find(id int) Todo - //Remove(t *Todo) + IndexOf(t *Todo) int + FindById(id int) *Todo + Delete(id int) NextId() int } -- cgit v1.3