aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/todo_item.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2016-04-26 09:01:40 -0400
committerGrant Ammons <gammons@gmail.com>2016-04-26 09:01:40 -0400
commite3213b3ef2c84387b66eeb731f5493c5e6da6a5d (patch)
tree46b5ee148e7fd578d992f08ab89ba1d24a322d29 /todolist/todo_item.go
parenta0f7203996439210b2a40663eeeeb8563ab03d68 (diff)
Get adding a todo working
Diffstat (limited to 'todolist/todo_item.go')
-rw-r--r--todolist/todo_item.go16
1 files changed, 8 insertions, 8 deletions
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 {