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.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/todolist/todo_item.go b/todolist/todo_item.go
index 1319132..0b6eeac 100644
--- a/todolist/todo_item.go
+++ b/todolist/todo_item.go
@@ -3,14 +3,14 @@ package todolist
import "time"
type Todo struct {
- Id int
- Subject string
- Projects []string
- Contexts []string
- Due string
- FormattedDue time.Time
- Completed bool
- Archived bool
+ 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"`
}
func NewTodo() *Todo {