新建hello.go

内容:

package main

import (
	"fmt"
)

func main() {

	fmt.Println("Hello liuyao")
}

运行:
	go run hello.go

如果要编译
	
	go build hello.go

演示:

1.go的Hello

相关文章: