那肯定是hello world
在go build 之后出现了go:can not find main module
解决:在项目根目录下go mod init hello(hello是代码名称)(加不加init是根据go 版本来判断的),之后出现了mod文件,再go run hello.go,即输出 hello world
那肯定是hello world
在go build 之后出现了go:can not find main module
解决:在项目根目录下go mod init hello(hello是代码名称)(加不加init是根据go 版本来判断的),之后出现了mod文件,再go run hello.go,即输出 hello world