github-vet / github-vet/rangeloop-pointer-findings
rpheuts/routery: routery.go; 7 LoC
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- PR metrics pending
Description
Found a possible issue in [rpheuts/routery](https://www.github.com/rpheuts/routery) at [routery.go](https://github.com/rpheuts/routery/blob/a34d7f455c2f883e7032ef0b05c24e61c741b87f/routery.go#L31-L37)
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.
> reference to dockerConfig was used in a composite literal at line 33
[Click here to see the code in its original context.](https://github.com/rpheuts/routery/blob/a34d7f455c2f883e7032ef0b05c24e61c741b87f/routery.go#L31-L37)
Click here to show the 7 line(s) of Go which triggered the analyzer.
```go
for _, dockerConfig := range cfg.Docker {
p := providers.DockerProvider{}
p.Initialize(&providers.ProviderConfig{true, &dockerConfig})
p.Provide(routeRequestChan)
log.Printf("Registered Docker Provider. IP: %v Port: %v SSL: %v\n", dockerConfig.IP, dockerConfig.Port, dockerConfig.SSL)
}
```
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: a34d7f455c2f883e7032ef0b05c24e61c741b87f
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.