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/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'todolist/util.go') diff --git a/todolist/util.go b/todolist/util.go index 4f5371d..bbed216 100644 --- a/todolist/util.go +++ b/todolist/util.go @@ -15,7 +15,7 @@ func AddIfNotThere(arr []string, items []string) []string { return arr } -func AddTodoIfNotThere(arr []Todo, item Todo) []Todo { +func AddTodoIfNotThere(arr []*Todo, item *Todo) []*Todo { there := false for _, arrItem := range arr { if item.Id == arrItem.Id { -- cgit v1.3