go-The 'main' file has the non-main package

1,027 阅读1分钟

Run after the build is not possible The 'main' file has the non-main package or does not contain the 'main' function

package awesomeProject
改为
package main