From c50de79c4828dbb4f9b5c23bf9e00ea4dea38a01 Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Mon, 12 Jun 2017 08:13:15 -0400 Subject: 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`. --- todolist/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'todolist/store.go') 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) } -- cgit v1.3