Param creates a query parameter with the given string value.
(paramName, s string)
| 305 | |
| 306 | // Param creates a query parameter with the given string value. |
| 307 | func (r *Request) Param(paramName, s string) *Request { |
| 308 | if r.err != nil { |
| 309 | return r |
| 310 | } |
| 311 | return r.setParam(paramName, s) |
| 312 | } |
| 313 | |
| 314 | // VersionedParams will take the provided object, serialize it to a map[string][]string using the |
| 315 | // implicit RESTClient API version and the default parameter codec, and then add those as parameters |