release: update readme.file v1.0.8, ParseHttpResponse in netutil/request.go

This commit is contained in:
dudaodong committed 2021-12-20 11:43:39 +08:00
1 parent f1dbd943aa
commit 3045d56503
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ func HttpPatch(url string, params ...interface{}) (*http.Response, error) {
return request(http.MethodPatch, url, params...)
}
// ParseHttpResponse convert the http response to interface{} obj
// ParseHttpResponse decode http response to specified interface
func ParseHttpResponse(resp *http.Response, obj interface{}) error {
if resp == nil {
return errors.New("InvalidResp")