我正在尝试使用 Go 构建一个 api,并尝试运行从 udemy 课程获得的 GitHub 上的现有文件。我得到这样的输出:C:\goworkspace\src\grpc-go-course-master\blog\blog_client>go run client.goclient.go:4:2: cannot find package "context" in any of: C:\go\src\context (from $GOROOT) C:\goworkspace\src\context (from $GOPATH)..\..\..\golang.org\x\net\http2\not_go111.go:10:2: cannot find package "net/http/httptrace" in any of: C:\go\src\net\http\httptrace (from $GOROOT) C:\goworkspace\src\net\http\httptrace (from $GOPATH)您能建议我什么可能导致此错误吗?
- 2 回答
- 0 关注
- 137 浏览
添加回答
举报
0/150
提交
取消