属于低级错误,表名在main包中不包含main()函数 解决方法如下: 添加main()函数 #注意拼写是否错误 package main import "fmt" func main(){ fmt.Println("hello world!!!") }