我也执行报错,请问你是怎么解决的呢
C:\Users\Administrator>go get github.com/golang/protobuf/protoc-gen-go
go: found github.com/golang/protobuf/protoc-gen-go in github.com/golang/protobuf v1.5.2
go\pkg\mod\google.golang.org\protobuf@v1.26.0\compiler\protogen\protogen.go:14:2: package bufio is not in GOROOT (C:\Users\Administrator\go\src\bufio)
go\pkg\mod\google.golang.org\protobuf@v1.26.0\compiler\protogen\protogen.go:15:2: package bytes is not in GOROOT (C:\Users\Administrator\go\src\bytes)
go\pkg\mod\google.golang.org\protobuf@v1.26.0\internal\impl\legacy_file.go:9:2: package compress/gzip is not in GOROOT (C:\Users\Administrator\go\src\compress\gzip)
go\pkg\mod\google.golang.org\protobuf@v1.26.0\internal\detrand\rand.go:13:2: package encoding/binary is not in GOROOT (C:\Users\Administrator\go\src\encoding\binary)
........