我正在尝试使用 Go 构建一个 api,并尝试运行从 udemy 课程获得的 GitHub 上的现有文件。我得到这样的输出:
C:\goworkspace\src\grpc-go-course-master\blog\blog_client>go run client.go
client.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)
您能建议我什么可能导致此错误吗?
慕丝7291255
守着一只汪
相关分类