【发布时间】:2017-05-29 14:49:27
【问题描述】:
我在 Intellij 中运行文件 main.go 时遇到问题。
Main.go 和 Common.go 相同的包 main。我在 Intellij 中运行 Main.go,然后控制台日志显示消息错误:“.\Main.go:9: undefined: showMsg”。 showMsg 是 Common.go 的一个函数
【问题讨论】:
-
检查运行配置。您可能正在运行单个文件,并且应该运行整个包
标签: go intellij-idea