最佳答案
。。。。。。。
hello 是二进制可执行文件 运行 直接 ./hello 或者双击运行
hello.go 是go源码 运行 go run hello.go
你是要运行哪个。
go run hello 第一次见
如果在非GOROOT目录,运行go项目,在项目目录下执行 go mod init 项目名
讨论数量:
。。。。。。。
hello 是二进制可执行文件 运行 直接 ./hello 或者双击运行
hello.go 是go源码 运行 go run hello.go
你是要运行哪个。
go run hello 第一次见
如果在非GOROOT目录,运行go项目,在项目目录下执行 go mod init 项目名
推荐文章: