diff options
| author | Grant Ammons <gammons@gmail.com> | 2016-05-01 15:07:45 -0400 |
|---|---|---|
| committer | Grant Ammons <gammons@gmail.com> | 2016-05-01 15:07:45 -0400 |
| commit | 0905a863f50d9631e6c44488b952622e75d79785 (patch) | |
| tree | 0634e9bd9e176660ad3d3260b24f08825aa85c67 /todolist/store.go | |
| parent | ef9427646b9464d1f8c376f75741e737117a1a83 (diff) | |
Implement delete logic
Diffstat (limited to 'todolist/store.go')
| -rw-r--r-- | todolist/store.go | 5 |
1 files changed, 3 insertions, 2 deletions
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 } |
