aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--todolist/app.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/todolist/app.go b/todolist/app.go
index a9145a1..880390e 100644
--- a/todolist/app.go
+++ b/todolist/app.go
@@ -31,9 +31,10 @@ func (a *App) AddTodo(input string) {
return
}
+ id := a.TodoList.NextId()
a.TodoList.Add(todo)
a.Save()
- fmt.Println("Todo added.")
+ fmt.Printf("Todo %d added.\n", id)
}
func (a *App) DeleteTodo(input string) {