From e3213b3ef2c84387b66eeb731f5493c5e6da6a5d Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Tue, 26 Apr 2016 09:01:40 -0400 Subject: Get adding a todo working --- todolist/todo_item.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'todolist/todo_item.go') diff --git a/todolist/todo_item.go b/todolist/todo_item.go index 1319132..0b6eeac 100644 --- a/todolist/todo_item.go +++ b/todolist/todo_item.go @@ -3,14 +3,14 @@ package todolist import "time" type Todo struct { - Id int - Subject string - Projects []string - Contexts []string - Due string - FormattedDue time.Time - Completed bool - Archived bool + Id int `json:"id"` + Subject string `json:"subject"` + Projects []string `json:"projects"` + Contexts []string `json:"contexts"` + Due string `json:"due"` + FormattedDue time.Time `json:"-"` + Completed bool `json:"completed"` + Archived bool `json:"archived"` } func NewTodo() *Todo { -- cgit v1.3