概述
E:gosrcch1main>go run hello.go
hello.go:2:8: cannot find package "fmt" in any of:
C:GOsrcfmt (from $GOROOT)
C:UsersTLCBgosrcfmt (from $GOPATH)
package command-line-arguments: cannot find package "runtime" in any of:
C:GOsrcruntime (from $GOROOT)
C:UsersTLCBgosrcruntime (from $GOPATH)
E:gosrcch1main>go run hello.go
hello.go:2:8: cannot find package "fmt" in any of:
C:GOsrcfmt (from $GOROOT)
C:UsersTLCBgosrcfmt (from $GOPATH)
package command-line-arguments: cannot find package "runtime" in any of:
C:GOsrcruntime (from $GOROOT)
C:UsersTLCBgosrcruntime (from $GOPATH)
解决:
最后
以上就是如意月光为你收集整理的go报错找不到fmt的全部内容,希望文章能够帮你解决go报错找不到fmt所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复