Closed ColinChamber closed 1 year ago
Thanks. could you help format the code and push a new commit ? I will squash and merge them
$ golangci-lint run gohangout.go
gohangout.go:161:23: Error return value of `http.ListenAndServe` is not checked (errcheck)
http.ListenAndServe(options.prometheus, nil)
^
gohangout.go:167:23: Error return value of `http.ListenAndServe` is not checked (errcheck)
http.ListenAndServe(options.pprofAddr, nil)
$ golangci-lint run input/input_box.go
It has no issues when checking with golangci-lint. Could you tell me how to find the line that needs to be formatted?
$ golangci-lint run gohangout.go gohangout.go:161:23: Error return value of `http.ListenAndServe` is not checked (errcheck) http.ListenAndServe(options.prometheus, nil) ^ gohangout.go:167:23: Error return value of `http.ListenAndServe` is not checked (errcheck) http.ListenAndServe(options.pprofAddr, nil)
$ golangci-lint run input/input_box.go
It has no issues when checking with golangci-lint. Could you tell me how to find the line that needs to be formatted?
gofmt --help
I saw your
TODO
mark. Would it be better to usecontext
? @childe