From ef9427646b9464d1f8c376f75741e737117a1a83 Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Sat, 30 Apr 2016 08:45:49 -0400 Subject: Handle parsing dates, and printing them --- todolist/todo_item.go | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'todolist/todo_item.go') 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 { -- cgit v1.3