1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 12:52:27 +08:00
Files
wechat/util/http.go
2016-09-11 13:16:15 +08:00

20 lines
269 B
Go

package util
import (
"io/ioutil"
"net/http"
)
//HTTPGet get 请求
func HTTPGet(url string) ([]byte, error) {
response, err := http.Get(url)
if err != nil {
return nil, err
}
return ioutil.ReadAll(response.Body)
}
//HTTPPost post 请求
func HTTPPost() {
}