go run命令,编译并运行go代码示例
进入到go文件所在目录,执行go run xxx.go
test.go
package main import ( "fmt" ) func main() { fmt.Println("hello word!") }
G:go中台微服务>go run test.gohello word!