What's the difference between this a https://github.com/securego/gosec?
gosec[1] will warn you about this, at least.
[reuse.go:26] - G601 (CWE-118): Implicit memory aliasing in for loop. (Confidence: MEDIUM, Severity: MEDIUM)
25: wg.Done()
> 26: }(&item)
27: }
[1] https://github.com/securego/gosecThat’s why tools like gosec complain when user input is used to access files - specifically because ‚..‘ allows one to „escape“.