当我运行时go vet,输出以下错误:client.go:2345: assignment copies lock value to tr: net/http.Transport contains sync.Mutexexit status 1客户端.go:2345:var tr http.Transport// Setup TLSif clientConfig.TLSEnabled { tr = http.Transport{ // This is line 2345 TLSClientConfig: &tls.Config{ InsecureSkipVerify: true, MinVersion: tls.VersionTLS11, }, }}我怎样才能绕过这个警告?它并没有阻止我的构建;但是,这是一个警告,我不想要警告。
- 1 回答
- 0 关注
- 165 浏览
添加回答
举报
0/150
提交
取消