共计 647 个字符,预计需要花费 2 分钟才能阅读完成。
1. 谬误 1
go build github.com/lucas-clemente/quic-go/internal/qtls: build constraints exclude all Go files in C:\Users\admin\go\pkg\mod\github.com\lucas-clemente\quic-go@v0.22.0\internal\qtls
FAIL gomicro-demo2 [build failed]
解决办法
go.mod 中的 quic-go 正文掉
// github.com/lucas-clemente/quic-go v0.22.0 // indirect
2. 谬误 2
cannot use client.ContentType("application/json") (value of type client.Option) as client.Option value in argument to phttp.NewClient
解决办法
go-micro 版本不统一,批改为统一
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/client/selector"
"github.com/micro/go-micro/v2/registry"
phttp "github.com/micro/go-plugins/client/http/v2"
"github.com/micro/go-plugins/registry/consul/v2"
正文完