當我運行時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 關注
- 159 瀏覽
添加回答
舉報
0/150
提交
取消