From 017ddfd50eec98e4ee8dd42a1dac800cdb674171 Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Tue, 3 May 2016 15:02:24 -0400 Subject: Make everything a pointer, add archive completed fn --- todolist/formatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'todolist/formatter.go') 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)), -- cgit v1.3