aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/formatter.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2016-05-03 15:02:24 -0400
committerGrant Ammons <gammons@gmail.com>2016-05-03 15:02:24 -0400
commit017ddfd50eec98e4ee8dd42a1dac800cdb674171 (patch)
treedb289ebcb7b0aaf4c1e24370a066072688c68724 /todolist/formatter.go
parent82dbd4a62ac62d97a61386696d992e3400167d97 (diff)
Make everything a pointer, add archive completed fn
Diffstat (limited to 'todolist/formatter.go')
-rw-r--r--todolist/formatter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/todolist/formatter.go b/todolist/formatter.go
index 60517f1..294b883 100644
--- a/todolist/formatter.go
+++ b/todolist/formatter.go
@@ -37,7 +37,7 @@ func (f *Formatter) Print() {
f.Writer.Flush()
}
-func (f *Formatter) printTodo(todo Todo) {
+func (f *Formatter) printTodo(todo *Todo) {
yellow := color.New(color.FgYellow).SprintFunc()
fmt.Fprintf(f.Writer, " \t%s\t%s\t%s\t%s\t\n",
yellow(strconv.Itoa(todo.Id)),