aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/todo_item.go
diff options
context:
space:
mode:
Diffstat (limited to 'todolist/todo_item.go')
-rw-r--r--todolist/todo_item.go17
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 {