summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-09-08 00:47:27 +0800
committerKeuin <[email protected]>2022-09-08 00:47:27 +0800
commit7a3543b128e94155eafffa6a96644564b2e95914 (patch)
tree2607d4f0cbb75dcf4306d6e82a6ed21ced0eb154 /main.go
parentb473c12438438a4709708d5d4ecd403d81f11e03 (diff)
Pretty task profile display.
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
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("")