golang运行hellowrld

官方教程地址 :https://golang.google.cn/doc/tutorial/getting-started

1.先安装golang安装包 https://golang.google.cn/dl/

2.编写hellowrld代码

package main

import "fmt"

func main() {
    fmt.Println("Hello, World!")
}

3.执行命令

go run hello.go
posted @ 2020-12-27 11:36  夏秋初  阅读(139)  评论(0编辑  收藏  举报