From 7a3543b128e94155eafffa6a96644564b2e95914 Mon Sep 17 00:00:00 2001 From: Keuin Date: Thu, 8 Sep 2022 00:47:27 +0800 Subject: Pretty task profile display. --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 37083b9..60df4d6 100644 --- a/main.go +++ b/main.go @@ -112,8 +112,8 @@ func main() { tasks := getTasks() fmt.Println("Record tasks:") - for _, task := range tasks { - fmt.Println(task.String()) + for i, task := range tasks { + fmt.Printf("[%2d] %s\n", i+1, task) } fmt.Println("") -- cgit v1.2.3