standard-http-method-constant
Default severity: warning
Reports hardcoded standard methods passed to http.NewRequest and
http.NewRequestWithContext. Use constants such as http.MethodGet to make
protocol intent explicit.
request, err := http.NewRequest("GET", endpoint, nil)request, err := http.NewRequest(http.MethodGet, endpoint, nil)