github-vet / github-vet/rangeloop-pointer-findings
aldeano19/JuliusCaesar: url-scraper.go; 3 LoC
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- PR metrics pending
Description
Found a possible issue in [aldeano19/JuliusCaesar](https://www.github.com/aldeano19/JuliusCaesar) at [url-scraper.go](https://github.com/aldeano19/JuliusCaesar/blob/f6ffb745145f3fc92b2a1f60c8088e71199f6a84/url-scraper.go#L229-L231)
Below is the message reported by the analyzer for this snippet of code. Beware that the analyzer only reports the first issue it finds, so please do not limit your consideration to the contents of the below message.
> range-loop variable url used in defer or goroutine at line 230
[Click here to see the code in its original context.](https://github.com/aldeano19/JuliusCaesar/blob/f6ffb745145f3fc92b2a1f60c8088e71199f6a84/url-scraper.go#L229-L231)
Click here to show the 3 line(s) of Go which triggered the analyzer.
```go
for _, url := range urls {
go func() {ch <- url}()
}
```
Leave a reaction on this issue to contribute to the project by classifying this instance as a **Bug** :-1:, **Mitigated** :+1:, or **Desirable Behavior** :rocket:
See the descriptions of the classifications [here](https://github.com/github-vet/rangeclosure-findings#how-can-i-help) for more information.
commit ID: f6ffb745145f3fc92b2a1f60c8088e71199f6a84
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.