GoLand 默认生成的 awesomeProject 新建的 Empty file。
package awesomeProjectimport "fmt"func main() { fmt.Println("hello world")}
这里要把 package awesomeProject,修改为 package main。
package awesomeProject
package main