src/Fierce.Mvc/wwwroot/content/easyui/insdep/plugin/highlight-9.9.0/test/detect/go/swift-like.txt
(完整代码) 427Bfunc makeRequest(method string, url string, cb func(error, io.ReadCloser)) {
req, _ := http.NewRequest(method, url, nil)
resp, err := http.DefaultClient.Do(req)
if err != nil {
cb(err, nil)
} else {
cb(err, resp.Body)
}
}
func main() {
makeRequest("GET", "http://ipinfo.io/json", func(err error, body io.ReadCloser) {
defer body.Close()
io.Copy(os.Stdout, body)
})
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
