golang第一课---Hello world

Go开发环境配置:
访问 Golang官网,下载指定平台的安装包,目前支持Windows、MacOS X、Linux 和 FreeBSD 四个平台,这里我们以Windows为例:

1.Windows下的安装:
安装包 go1.9.2.windows-amd64.msi 双击打开一路next的傻逼式的安装方式。

资源地址:
或者到:Golang中国 或者 官网下载

检查版本:
直接打开cmd命令行,输入一下指令查询安装Go的版本

hello.go

package main

import "fmt"

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

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/ahaotata/article/details/83901926