web/rest/rest.go
Method client.Do
has 6 return statements (exceeds 4 allowed). Open
Open
func (c *client) Do(
method string, url string, body interface{}, result interface{}) (*http.Response, error) {
request, err := c.CreateRequest(method, c.resolveURL(url), body)
if err != nil {
return nil, err
Function createRequest
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
method string, url string, body interface{}, encode bodyEncoder, contentType string) (*http.Request, error) {