Mac下安装 Go
来源:互联网 发布:下载的软件连不上网络 编辑:程序博客网 时间:2024/05/21 06:57
到官网下载安装包https://golang.org/dl/,可能需要翻墙。
安装之后把/usr/local/go/bin
添加到环境变量
// 打开 ~/.profile,添加下面的内容PATH="/usr/local/go/bin:${PATH}"export PATH
重新打开 Terminal,输入go
go
如果出来一堆东西,就说明成功了
Go is a tool for managing Go source code.Usage: go command [arguments]The commands are: build compile packages and dependencies clean remove object files doc show documentation for package or symbol env print Go environment information fix run go tool fix on packages fmt run gofmt on package sources generate generate Go files by processing source get download and install packages and dependencies install compile and install packages and dependencies list list packages run compile and run Go program test test packages tool run specified go tool version print Go version vet run go tool vet on packagesUse "go help [command]" for more information about a command.Additional help topics: c calling between Go and C buildmode description of build modes filetype file types gopath GOPATH environment variable environment environment variables importpath import path syntax packages description of package lists testflag description of testing flags testfunc description of testing functionsUse "go help [topic]" for more information about that topic.
可以看到 go 命令的用法。
0 0
- mac下安装go
- Mac下安装 Go
- Mac下go下载安装
- mac下go环境的安装
- mac 安装 go语言
- Ubuntu,Mac安装go
- mac 安装go语言
- mac安装go环境
- 在Mac OSX下安装和使用GO语言
- Mac OS 环境下go语言的安装
- Mac下安装、配置Go语言开发环境
- Mac下的Sublime Text 3 安装go插件GoSublime, SideBarEnhancements,Go Build,Godef
- mac下搭建go环境
- Mac下搭建GO环境
- GO for Mac的安装
- go 安装下载 for Mac
- Mac 安装 GVM 和 GO
- linux下go安装
- 一个工程实例来学习 Makefile
- C#判断大小端并转换int数据
- 变量名与变量地址
- Party at Hali-Bula(树形dp)
- C#反射机制
- Mac下安装 Go
- kmp和dfa
- POJ 3252 Round Numbers (二进制数位dp)
- C++中的接口继承和实现继承
- The Pattern Recognition
- JavaScript的arguments对象
- Chongqing University Weekly Training (10.18) 小结
- web页面跳转几种方式详解
- c语言之学生管理系统程序(四)