一个package里,可以创建多个main函数的源文件,只能一个一个源文件编译吗?
go build .(编译project)会报错
user:HelloProject user$ go build .
# HelloProject
./learn.go:32:6: main redeclared in this block
previous declaration at ./HelloWorld.go:11:6
./test.go:5:6: main redeclared in this block
previous declaration at ./learn.go:32:6