aboutsummaryrefslogtreecommitdiffstats
path: root/todo.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2016-04-23 16:59:52 -0400
committerGrant Ammons <gammons@gmail.com>2016-04-23 16:59:52 -0400
commit8138ffaf380fb646b6877dd20f874735eddd2d6d (patch)
treeda3077b68ff432d4ffe2aeae234ecb70843a3165 /todo.go
Initial commit
Diffstat (limited to 'todo.go')
-rw-r--r--todo.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/todo.go b/todo.go
new file mode 100644
index 0000000..739863c
--- /dev/null
+++ b/todo.go
@@ -0,0 +1,19 @@
+package todolist
+
+type Todo struct {
+ Id string
+ Subject string
+ Projects []string
+ Contexts []string
+ Due string
+ Completed bool
+ Archived bool
+}
+
+func NewTodo() *Todo {
+ return &Todo{Completed: false, Archived: false}
+}
+
+func (t Todo) Valid() bool {
+ return (t.Subject != "")
+}