1.hello,world

1.hello,world

GO是编译型语言。GO的工具链将程序的源文件转变成机器相关的原生二进制指令。这些工具可以通过单一的go,命令配合其子命令进行使用。最简单的子命令是润,它将一个或多个以.go为后缀的源文件进行编译、链接,然后运行生成的可执行文件。

package main
import "fmt"
func main() {
    fmt.Println("hello,world")
}

go run helloworld.go
go build helloworld.go

posted on 2020-05-08 11:44  黄海彦架构师之路  阅读(237)  评论(0编辑  收藏  举报

导航