MCPcopy Create free account
hub / github.com/imroc/req / SetQueryParamsAnyType

Method SetQueryParamsAnyType

request.go:581–586  ·  view source on GitHub ↗

SetQueryParamsAnyType set URL query parameters from a map for the request. The value of map is any type, will be convert to string automatically.

(params map[string]any)

Source from the content-addressed store, hash-verified

579// SetQueryParamsAnyType set URL query parameters from a map for the request.
580// The value of map is any type, will be convert to string automatically.
581func (r *Request) SetQueryParamsAnyType(params map[string]any) *Request {
582 for k, v := range params {
583 r.SetQueryParam(k, fmt.Sprint(v))
584 }
585 return r
586}
587
588// SetQueryParam set an URL query parameter for the request.
589func (r *Request) SetQueryParam(key, value string) *Request {

Callers 2

SetQueryParamsAnyTypeFunction · 0.80
ListUserRepoMethod · 0.80

Calls 1

SetQueryParamMethod · 0.95

Tested by

no test coverage detected