diff options
| author | Grant Ammons <gammons@gmail.com> | 2016-05-02 06:34:38 -0400 |
|---|---|---|
| committer | Grant Ammons <gammons@gmail.com> | 2016-05-02 06:34:38 -0400 |
| commit | 54e9313ad14269f57a13b32aac59aea17f86d151 (patch) | |
| tree | 9c6364af5e93d6b80df893d317894f60d6662940 /todolist/store.go | |
| parent | b1fc3359eb7498236621d1aa6a9ff18f8cce73c0 (diff) | |
Get completing todos to work correctly
Diffstat (limited to 'todolist/store.go')
| -rw-r--r-- | todolist/store.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/todolist/store.go b/todolist/store.go index 94f2f5e..066e3e3 100644 --- a/todolist/store.go +++ b/todolist/store.go @@ -2,13 +2,15 @@ package todolist type Store interface { Load() + Save() Todos() []Todo Add(t *Todo) - Save() + Delete(id int) + + Complete(id int) IndexOf(t *Todo) int FindById(id int) *Todo - Delete(id int) NextId() int } |
