Delete request, return custom json format
(result interface{}, urlStr string, opts ...Option)
| 375 | |
| 376 | // Delete request, return custom json format |
| 377 | func Delete(result interface{}, urlStr string, opts ...Option) error { |
| 378 | o := defaultOptions() |
| 379 | o.apply(opts...) |
| 380 | return gDo("DELETE", result, urlStr, o.params, o.headers, o.timeout) |
| 381 | } |
| 382 | |
| 383 | // Post request, return custom json format |
| 384 | func Post(result interface{}, urlStr string, body interface{}, opts ...Option) error { |