我是靠谱客的博主 如意月光,这篇文章主要介绍go报错找不到fmt,现在分享给大家,希望可以做个参考。

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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(99)

评论列表共有 0 条评论

立即
投稿
返回
顶部