aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/todo_item.go
diff options
context:
space:
mode:
authorQuey-Liang Kao <s101062801@m101.nthu.edu.tw>2017-08-14 14:41:40 +0800
committerQuey-Liang Kao <s101062801@m101.nthu.edu.tw>2017-08-14 14:58:32 +0800
commit5d28dac9b2e1d153f33551b968ab4c92cfce23ce (patch)
treeb323964d5a61014105b0884e81c9d88be1a74118 /todolist/todo_item.go
parent49ab75141a7799aa746765547bd74cb07b45bfee (diff)
Implement the "an" feature: Adding notes to todos
This patch introduce a new attribute of a todo item, which is "Notes", of type []string. The following enhancing patches will contain the listing, removing and editing features.
Diffstat (limited to 'todolist/todo_item.go')
-rw-r--r--todolist/todo_item.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/todolist/todo_item.go b/todolist/todo_item.go
index 0c30707..5b9bcbc 100644
--- a/todolist/todo_item.go
+++ b/todolist/todo_item.go
@@ -15,6 +15,7 @@ type Todo struct {
CompletedDate string `json:"completedDate"`
Archived bool `json:"archived"`
IsPriority bool `json:"isPriority"`
+ Notes []string `json:"notes"`
}
func NewTodo() *Todo {