diff options
| author | Grant Ammons <gammons@gmail.com> | 2016-04-30 08:45:49 -0400 |
|---|---|---|
| committer | Grant Ammons <gammons@gmail.com> | 2016-04-30 08:45:49 -0400 |
| commit | ef9427646b9464d1f8c376f75741e737117a1a83 (patch) | |
| tree | ba3912135e071cd2c7b77e746126cc5eae67ccfb /todolist/todo_item.go | |
| parent | 695c60e3f58d831e4b05aa35114adff7e1c46d23 (diff) | |
Handle parsing dates, and printing them
Diffstat (limited to 'todolist/todo_item.go')
| -rw-r--r-- | todolist/todo_item.go | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/todolist/todo_item.go b/todolist/todo_item.go index 0b6eeac..cc06615 100644 --- a/todolist/todo_item.go +++ b/todolist/todo_item.go @@ -1,16 +1,13 @@ 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"` - FormattedDue time.Time `json:"-"` - 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"` } func NewTodo() *Todo { |
