Found a possible issue in [bryanxu/go-zh](https://www.github.com/bryanxu/go-zh) at [src/runtime/map_test.go](https://github.com/bryanxu/go-zh/blob/1b0e138c5300dbf280dba2e2c9f4e43ec50c7d51/src/runtime/map_test.go#L253-L276) The below snippet of Go code triggered static analysis which searches for goroutines and/or defer statements which capture loop variables. [Click here to see the code in its original context.](https://github.com/bryanxu/go-zh/blob/1b0e138c5300dbf280dba2e2c9f4e43ec50c7d51/src/runtime/map_test.go#L253-L276) <details> <summary>Click here to show the 24 line(s) of Go which triggered the analyzer.</summary> ```go for nr := 0; nr < numReader; nr++ { go func() { defer wg.Done() for range m { } }() go func() { defer wg.Done() for key := 0; key < gs; key++ { _ = m[key] } }() if useReflect { wg.Add(1) go func() { defer wg.Done() mv := reflect.ValueOf(m) keys := mv.MapKeys() for _, k := range keys { mv.MapIndex(k) } }() } } ``` </details> commit ID: 1b0e138c5300dbf280dba2e2c9f4e43ec50c7d51
Found a possible issue in bryanxu/go-zh at src/runtime/map_test.go
The below snippet of Go code triggered static analysis which searches for goroutines and/or defer statements
which capture loop variables.
Click here to see the code in its original context.
Click here to show the 24 line(s) of Go which triggered the analyzer.
commit ID: 1b0e138c5300dbf280dba2e2c9f4e43ec50c7d51