Put request, return custom json format
(result interface{}, urlStr string, body interface{}, opts ...Option)
| 389 | |
| 390 | // Put request, return custom json format |
| 391 | func Put(result interface{}, urlStr string, body interface{}, opts ...Option) error { |
| 392 | o := defaultOptions() |
| 393 | o.apply(opts...) |
| 394 | return do("PUT", result, urlStr, body, o.params, o.headers, o.timeout) |
| 395 | } |
| 396 | |
| 397 | // Patch request, return custom json format |
| 398 | func Patch(result interface{}, urlStr string, body interface{}, opts ...Option) error { |