1.go的Hello

新建hello.go

内容:

package main

import (
	"fmt"
)

func main() {

	fmt.Println("Hello liuyao")
}

运行:
	go run hello.go

如果要编译
	
	go build hello.go

演示:

原文地址:https://www.cnblogs.com/liu-yao/p/6172318.html