新建hello.go
内容:
package main import ( "fmt" ) func main() { fmt.Println("Hello liuyao") } 运行: go run hello.go 如果要编译 go build hello.go
演示: