aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/store.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2017-06-12 08:13:15 -0400
committerGrant Ammons <gammons@gmail.com>2017-06-12 08:13:15 -0400
commitc50de79c4828dbb4f9b5c23bf9e00ea4dea38a01 (patch)
tree1c6a3a75ca21299e160778f9dd5fddb3be9f3828 /todolist/store.go
parentcb849e5a8e0280d9fc10941d915f6252a0ad1cdc (diff)
Fix #64, parsing a todo with europe date format
* the `hasDue` function was not running, and therefore it was not parsing the due date. * Also added the beginnings of a more holistic test approach, using `app_test.go`.
Diffstat (limited to 'todolist/store.go')
-rw-r--r--todolist/store.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/todolist/store.go b/todolist/store.go
index 518a30e..b246d8b 100644
--- a/todolist/store.go
+++ b/todolist/store.go
@@ -2,6 +2,6 @@ package todolist
type Store interface {
Initialize()
- Load()
- Save()
+ Load() ([]*Todo, error)
+ Save(todos []*Todo)
}