```
go version
go version go1.13.14 windows/amd64
go env
set GO111MODULE=on
set GOPROXY=https://goproxy.cn,direct
go mod vendor
Test/web/router imports
github.com/prometheus/client_golang/prometheus/promhttp imports
github.com/prometheus/client_golang/prometheus imports
runtime/metrics: malformed module path "runtime/metrics": missing dot in first path element
```
把对这个包的import和使用给注释了就没问题,但是包本身应该没啥问题。
go build和go run都没有问题。
另外还有一个问题
```
$ go build
# github.com/olivere/elastic/v7
..\..\pkg\mod\github.com\olivere\elastic\v7@v7.0.32\client.go:1505:10: req.URL.Redacted undefined (type *url.URL has no field or method Redacted)
note: module requires Go 1.17
```
这个意思是需要go升级到1.17?更新到1.17以后,不知道是不是打开的方式不对,go build和go run都会卡住,不报错也没有结果
有疑问加站长微信联系(非本文作者)