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)
| 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. |
| 581 | func (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. |
| 589 | func (r *Request) SetQueryParam(key, value string) *Request { |
no test coverage detected