diff options
| author | Grant Ammons <gammons@gmail.com> | 2017-03-06 07:47:15 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-06 07:47:15 -0500 |
| commit | c67037d4944c949bd53e2a0925a51717c7eb5334 (patch) | |
| tree | 98b8e18f6779fc4d9e243d1d5215117763a1c404 /todolist/todo_item.go | |
| parent | 39d01ff369695cc9a3ac92cfea3c7f9169aceb0a (diff) | |
| parent | c2114f083afeb1ac2cc28e9a83f3a9c591b59a1f (diff) | |
Merge pull request #38 from gammons/prioritize-feature
Add priority feature
Diffstat (limited to 'todolist/todo_item.go')
| -rw-r--r-- | todolist/todo_item.go | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/todolist/todo_item.go b/todolist/todo_item.go index 6b820b1..273df8d 100644 --- a/todolist/todo_item.go +++ b/todolist/todo_item.go @@ -3,17 +3,18 @@ package todolist import "time" type Todo struct { - Id int `json:"id"` - Subject string `json:"subject"` - Projects []string `json:"projects"` - Contexts []string `json:"contexts"` - Due string `json:"due"` - Completed bool `json:"completed"` - Archived bool `json:"archived"` + Id int `json:"id"` + Subject string `json:"subject"` + Projects []string `json:"projects"` + Contexts []string `json:"contexts"` + Due string `json:"due"` + Completed bool `json:"completed"` + Archived bool `json:"archived"` + IsPriority bool `json:"isPriority"` } func NewTodo() *Todo { - return &Todo{Completed: false, Archived: false} + return &Todo{Completed: false, Archived: false, IsPriority: false} } func (t Todo) Valid() bool { |
