glang 多种http请求
func HttpGet(url string) ([]byte, error) { resp, err := http.Get(url) if err != nil { // handle error return nil, err } defer resp.Body.Close() body, err := ioutil.ReadAll(resp.Body) if err != nil { // handle error return nil, err } return body, err ...阅读全文