From dde4f5330c2126af0e3ec17e4098653c6f551426 Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Sun, 24 Apr 2016 19:58:53 -0400 Subject: Bring in the app and router --- todolist/file_store.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'todolist/file_store.go') diff --git a/todolist/file_store.go b/todolist/file_store.go index 3f71ba2..ac3dff5 100644 --- a/todolist/file_store.go +++ b/todolist/file_store.go @@ -30,5 +30,8 @@ func (f *FileStore) Load() { fmt.Println("Error reading json data", jerr) os.Exit(1) } +} +func (f *FileStore) Todos() []Todo { + return f.Data } -- cgit v1.3