|
1 | | -# DSPC [](https://pkg.go.dev/github.com/destel/dspc) |
| 1 | +# dspc [](https://pkg.go.dev/github.com/destel/dspc) |
2 | 2 |
|
3 | | -DSPC - a dead simple progress counter for concurrent CLI apps in Go. |
| 3 | +Show progress of concurrent tasks in your Go CLI apps. |
4 | 4 |
|
5 | | - |
| 5 | + |
6 | 6 |
|
7 | | -Think of it as a set of named atomic counters that are: |
| 7 | +Think of `dspc` as a set of named atomic counters which are: |
8 | 8 | - **Fast** - lock and allocation free, faster than `map[string]int` in both single-threaded and concurrent scenarios |
9 | 9 | - **Nice to look at** - clean, readable terminal output that updates in-place |
10 | 10 | - **Log-friendly** - don't interfere with your application's log output |
@@ -43,16 +43,16 @@ When running tasks across multiple goroutines, you usually need to track their p |
43 | 43 | the number of tasks that are completed, failed or currently in progress. You may also want to track dynamic categories - |
44 | 44 | different kinds of tasks, or types of errors (e.g., "validation_error", "network_error", etc). |
45 | 45 |
|
46 | | -When running the app in terminal, you want to see a clean progress report that updates in real-time, |
| 46 | +When running the app in terminal, you want to see a clean progress report that updates in-place, |
47 | 47 | while keeping your normal application logs readable and separate. |
48 | 48 |
|
49 | 49 | Another example is running such apps in Kubernetes. For simple one-off pods, instead of configuring metrics and dashboards, you |
50 | 50 | may just want to watch the logs and progress reports in real-time with `kubectl logs -f`. |
51 | 51 |
|
52 | | -DSPC can also help to debug concurrent applications too. |
| 52 | +dspc can also help to debug concurrent applications. |
53 | 53 | Add a few counters across your goroutines to see which ones are making progress and which ones are stuck. |
54 | 54 |
|
55 | | -If such use cases sound familiar, DSPC is what you need. |
| 55 | +If such use cases sound familiar, dspc is what you need. |
56 | 56 |
|
57 | 57 |
|
58 | 58 |
|
|
0 commit comments