From 54e9313ad14269f57a13b32aac59aea17f86d151 Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Mon, 2 May 2016 06:34:38 -0400 Subject: Get completing todos to work correctly --- todolist/store.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'todolist/store.go') 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 } -- cgit v1.3