PostJSON post json 数据请求
(uri string, obj interface{})
| 119 | |
| 120 | // PostJSON post json 数据请求 |
| 121 | func PostJSON(uri string, obj interface{}) ([]byte, error) { |
| 122 | return PostJSONContext(context.Background(), uri, obj) |
| 123 | } |
| 124 | |
| 125 | // PostJSONWithRespContentType post json 数据请求,且返回数据类型 |
| 126 | func PostJSONWithRespContentType(uri string, obj interface{}) ([]byte, string, error) { |
no test coverage detected
searching dependent graphs…