I have written a go program which is doing many tasks concurrently (in goroutines), and showing the status of these task on the console like this -
[Ongoing] Task1
[Ongoing] Task2
[Ongoing] Task3
Now Any of these tasks can finish first or last. I want to update the status of these tasks at the same place. If Task2 finishes first then it should show something like this-
[Ongoing] Task1
[Done] Task2
[Ongoing] Task3
I tried uilive library, but It's always updating the last line like this. (I think it's not for updating multiple lines)
[Ongoing] Task1
[Ongoing] Task2
[Done] Task2
How do I achieve this?