x509: certificate signed by unknown authority (golang http请求报错)
原因:访问了没有证书的域名或ip地址解决方法funcNewHttpClient()*http.Client{t:=http.DefaultTransport.(*http.Transport).Clone()//不对证书进行校验t.TLSClientConfig=&tls.Config{InsecureSkipVerify:true}t.MaxConnsPerHost=200t.MaxIdleCo