GO的安装方式有三种
- 官方二进制版发行版
可以从此链接下载相应的版本,安装到指定目录即可比如:(/usr/local/go),方便快捷!
测试你的安装
通过构建一个简单的程序来检查Go的安装是否正确,具体操作如下:
在安装目录中(/usr/local/go/src/)下新建目录hello.
在下创建一个名为hello.go的文件,并将以下代码保存在其中:
package main import "fmt" func main() { fmt.Printf("hello, world\n") }
接着通过go工具运行它:
$ /usr/local/go/bin/go run hello.go hello, world
若你看到了“hello, world”信息,那么你的Go已被正确安装
and some strange knicknacks
weight loss tips A History of the Handbag
When you put your thoughts in writing
pornoIs Your Child Being Bugged
pornoIs Your Child Being Bugged