req是golang的http client客户端。
示例
package main
import (
"fmt"
"github.com/imroc/req"
)
func main() {
req.Debug = true
headers := req.Header{
"content-type": "application/json",
}
resp, err := req.Get("https://api.github.com", headers)
fmt.Println(resp, err, resp.Dump())
}