diff options
| author | Grant Ammons <gammons@gmail.com> | 2016-04-24 19:58:53 -0400 |
|---|---|---|
| committer | Grant Ammons <gammons@gmail.com> | 2016-04-24 19:58:53 -0400 |
| commit | dde4f5330c2126af0e3ec17e4098653c6f551426 (patch) | |
| tree | 6e3fa6b61f2e5b2d19463c7467808e44e87b290b /todolist/file_store.go | |
| parent | 51770b80db0fe299c69bef5060662178f67eb714 (diff) | |
Bring in the app and router
Diffstat (limited to 'todolist/file_store.go')
| -rw-r--r-- | todolist/file_store.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 } |
