diff options
| author | Grant Ammons <gammons@gmail.com> | 2017-03-07 08:12:35 -0500 |
|---|---|---|
| committer | Grant Ammons <gammons@gmail.com> | 2017-03-07 08:12:35 -0500 |
| commit | 5763376a7ef50a116f9585ffd280bbf8e37621d3 (patch) | |
| tree | 8dc6d5376e1bf422a1aa693c27f505721741a1f0 /todolist/todo_item.go | |
| parent | 871fb90b26a98ee3569c325940a5f4e380631c54 (diff) | |
| parent | 34931b46ed9ebb06e9555d6e62c98c70dc460d59 (diff) | |
Merge branch 'master' into garbage-collect
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 { |
