Implement HTTP transport using SSE, Protocol 2024-11-05 (Final) #4
Annotations
10 errors
|
Run golangci-lint:
pkg/transport/http.go#L46
Error return value of `resp.Body.Close` is not checked (errcheck)
|
|
Run golangci-lint:
pkg/transport/http.go#L78
Error return value of `fmt.Errorf` is not checked (errcheck)
|
|
Run golangci-lint:
pkg/transport/http.go#L125
Error return value of `resp.Body.Close` is not checked (errcheck)
|
|
Run golangci-lint:
pkg/transport/http.go#L148
Error return value of `fmt.Errorf` is not checked (errcheck)
|
|
Run golangci-lint:
pkg/transport/http.go#L149
exitAfterDefer: os.Exit will exit, and `defer resp.Body.Close()` will not run (gocritic)
|
|
Run golangci-lint:
pkg/transport/http.go#L51
shadow: declaration of "err" shadows declaration at line 31 (govet)
|
|
Run golangci-lint:
pkg/client/client.go#L36
var-naming: func NewHttp should be NewHTTP (revive)
|
|
Run golangci-lint:
pkg/transport/http.go#L1
package-comments: should have a package comment (revive)
|
|
Run golangci-lint:
pkg/transport/http.go#L17
var-naming: type Http should be HTTP (revive)
|
|
Run golangci-lint:
pkg/transport/http.go#L28
var-naming: func NewHttp should be NewHTTP (revive)
|