fix all lint issues #4
Annotations
10 errors
|
lint:
pkg/server/client.go#L58
shadow: declaration of "err" shadows declaration at line 51 (govet)
|
|
lint:
pkg/config/config.go#L59
shadow: declaration of "err" shadows declaration at line 38 (govet)
|
|
lint:
pkg/config/config.go#L52
shadow: declaration of "err" shadows declaration at line 38 (govet)
|
|
lint:
pkg/config/config.go#L48
shadow: declaration of "err" shadows declaration at line 38 (govet)
|
|
lint:
pkg/server/server.go#L44
G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)
|
|
lint:
pkg/server/server.go#L170
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
|
|
lint:
pkg/server/server.go#L164
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
|
|
lint:
pkg/server/server.go#L158
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
|
|
lint:
pkg/server/server.go#L147
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
|
|
lint:
pkg/server/server.go#L138
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
|