for _, item := range itemList {
// Increment WaitGroup Counter
wg.Add(1)
- go doOperation(item)
+ go doOperation(&wg, item)
}
// Wait for goroutines to finish
wg.Wait()
{: data-line="1,4,8,12"}
```go
-func doOperation(item string) {
+func doOperation(wg *sync.WaitGroup, item string) {
defer wg.Done()
// do operation on item
// ...
| `Shift+r` | reverses sorting |
| `Shift+l` | searches for string |
| `o` | adds a filter |
+| `u` | filter user |
| `=` | clears filters |
+| `V` | Forest view |
+| `c` | show full path |
{: .-shortcuts}