摘要:
package controllers import ( "encoding/json" "fmt" "github.com/astaxie/beego" "io/ioutil" "net/http" "sync" ) type ApiController struct { beego.Contro 阅读全文
posted @ 2020-06-15 19:19
ml1039951l
阅读(1056)
评论(0)
推荐(0)
摘要:
func requestApi(n int) (map[string]string) { apiData := make(map[string]string) url := "https://suggest.taobao.com/sug?q=VR&code=utf-8" var wg sync.Wa 阅读全文
posted @ 2020-06-15 17:59
ml1039951l
阅读(1898)
评论(0)
推荐(0)
摘要:
GO的linux源码包 https://studygolang.com/dl 1.下载 wget https://studygolang.com/dl/golang/go1.14.2.linux-amd64.tar.gz 2.解压到/usr/local/ tar -C /usr/local/ -zx 阅读全文
posted @ 2020-06-15 11:09
ml1039951l
阅读(981)
评论(0)
推荐(0)
摘要:
// 经测试, 1000个请求耗时约1秒packag main import( "fmt" "io/ioutil" "net/http" "sync" "time" ) func httpGet(url string) string{ resp, _ := http.Get(url) defer r 阅读全文
posted @ 2020-06-13 16:17
ml1039951l
阅读(1157)
评论(0)
推荐(0)