chore(lint): upgrade linter to v1.56.2
This commit is contained in:
13
internal/server/helpers.go
Normal file
13
internal/server/helpers.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func errMethodNotSupported(w http.ResponseWriter, method string) {
|
||||
http.Error(w, "method "+method+" not supported", http.StatusBadRequest)
|
||||
}
|
||||
|
||||
func errRouteNotSupported(w http.ResponseWriter, route string) {
|
||||
http.Error(w, "route "+route+" not supported", http.StatusBadRequest)
|
||||
}
|
||||
Reference in New Issue
Block a user