go语言:一些环境变量
直接不翻译了
The Go compilation environment can be customized by environment variables. None is required by the build, but you may wish to set some to override the defaults.
$GOROOT
The root of the Go tree, often
$HOME/go
. Its value is built into the tree when it is compiled, and defaults to the parent of the directory whereall.bash
was run. There is no need to set this unless you want to switch between multiple local copies of the repository.$GOROOT_FINAL
The value assumed by installed binaries and scripts when
$GOROOT
is not set explicitly. It defaults to the value of$GOROOT
. If you want to build the Go tree in one location but move it elsewhere after the build, set$GOROOT_FINAL
to the eventual location.$GOOS
and$GOARCH
The name of the target operating system and compilation architecture. These default to the values of
$GOHOSTOS
and$GOHOSTARCH
respectively (described below).Choices for
$GOOS
aredarwin
(Mac OS X 10.6 and above),dragonfly
,freebsd
,linux
,netbsd
,openbsd
,plan9
,solaris
andwindows
. Choices for$GOARCH
areamd64
(64-bit x86, the most mature port),386
(32-bit x86), andarm
(32-bit ARM). The valid combinations of$GOOS
and$GOARCH
are:$GOOS
$GOARCH
darwin
386
darwin
amd64
dragonfly
386
dragonfly
amd64
freebsd
386
freebsd
amd64
freebsd
arm
linux
386
linux
amd64
linux
arm
netbsd
386
netbsd
amd64
netbsd
arm
openbsd
386
openbsd
amd64
plan9
386
plan9
amd64
solaris
amd64
windows
386
windows
amd64
$GOHOSTOS
and$GOHOSTARCH
The name of the host operating system and compilation architecture. These default to the local system's operating system and architecture.
Valid choices are the same as for
$GOOS
and$GOARCH
, listed above. The specified values must be compatible with the local system. For example, you should not set$GOHOSTARCH
toarm
on an x86 system.$GOBIN
The location where Go binaries will be installed. The default is
$GOROOT/bin
. After installing, you will want to arrange to add this directory to your$PATH
, so you can use the tools. If$GOBIN
is set, the go command installs all commands there.
转载于:https://www.cnblogs.com/xujinping/p/4504827.html
go语言:一些环境变量相关推荐
- Win10安装Go语言以及环境变量的配置
Go语言安装 下载地址https://studygolang.com/dl 配置Go语言的环境变量 创建Go语言代码存放的目录 找到解压/安装的目录配置环境变量 配置系统变量 GOROOT 配置到解压 ...
- vim配置c语言开发环境变量,gcc配置和vim编程
在使用vim编译程序的时候,首先应该明白vim自己是不能独自编译程序的,因为它只是一个编辑器,类似于记事本,要用它直接编译程序,还要安装第三方编译软件,这儿我们选择Dev-cpp,因为它包括gcc,我 ...
- c语言path环境变量,Windows下PATH等环境变量详解(转载)
在学习JAVA的过程中,涉及到多个环境变量(environment variable)的概念,如PATH.正确地配置这些环境变量,是能够顺利学习.开发的前提.而经常出现的问题是:有的学习者能够按照提示 ...
- go语言:环境变量GOPROXY和GO111MODULE设置
前言 在上一篇文章go语言:go sdk安装及GOROOT和GOPATH设置 中介绍了golang的安装及环境变量的设置,GOROOT和GOPATH需要在windows中操作.当我们安装完golang ...
- 重温c语言之环境变量
#include <stdio.h> void main(int argc, char *argv[], char *env[]) { int i; for (i = 0; env ...
- linux系统如何切换语言环境变量,Linux系统中如何修改某用户语言环境变量
在所管理的服务器上,有的可以在终端里面输入汉字,有的不行,会显示乱码.比较其相对应的环境变量.发现关于语言的环境变量不一样.在网上搜索了大量的资料,没有找到解决的方法.看了鸟哥书中相关的部分才找到解决 ...
- 有Go语言实战培训班吗?go语言开发环境搭建
一.Golang语言的官网 首先我们登录Golang的官方网站:https://golang.org/ 因为Google和中国的关系,直接登录Golang的官网,需要翻墙. 当然你也可以登录Golan ...
- python脚本文件变量设置_Python环境变量设置方法
Alias Maya中的脚本语言是Mel 和 Python,据说Houdini未来也会把Python作为主要的脚本语言,作为影视特效师,掌握Python语言是必备技能:虽然Maya内置了Python运 ...
- java语言环境变量_JAVA语言环境变量的设置教程
本文主要向大家介绍了JAVA语言环境变量的设置教程,通过具体的内容向大家展示,希望对大家学习JAVA语言有所帮助. 安装JDK到目录,我这里是C:\Java 右键点击计算机属性 在系统变量里面建 JA ...
- Python设置环境变量,改变GnomeConnectionManager的语言
2019独角兽企业重金招聘Python工程师标准>>> 编辑/usr/share/gnome-connection-manager/gnome_connection_manager. ...
最新文章
- docker暴露多个端口
- [Vim 使用]vim 自动括号补全配置
- 对makefile中,变量定义中 通配符的理解
- Linux网络协议栈(三)——网络设备(1)
- Leecode刷题热题HOT100(22)——括号生成
- 51nod 1274 最长递增路径(DP)
- 计算机专业答辩开场白,毕业答辩开场白三分钟
- 扫二维码缴违章停车罚款?骗你的!
- 景安mysql主机_景安虚拟主机使用教程
- RecyclerView.Adapter的封装(RecyclerAdapter)
- 转:Python 主进程被杀死时,如何保证子进程同时退出而不变为孤儿进程
- 使用JMH做Java微基准测试(四)默认状态测试
- send tcp char far_wemos D1 arduino项目实战1-TCP协议连接Tlink平台③
- 双光耦开关电源电路图_光耦817应用电路图汇总(PC817光电耦合器/开关电源/TL431)...
- Matlab绘制图像(plot函数)
- 虾皮测试面试——凉经
- AS使用Viewbinding出现Could not find method buildFeatures() for arguments报错
- c语言输出法雷序列,法雷(法里)序列 - osc_h0wb1wlt的个人空间 - OSCHINA - 中文开源技术交流社区...
- RSA der加密 p12解密以及配合AES使用详解
- java自学开发编程路线图
热门文章
- [转]Linux内核基础与常用命令总结
- 读书笔记_中国期货市场量化交易(李尉)05
- 5mins看懂数据分析师必备的「波士顿模型」
- jsf ajax循环调用,每次JSF ajax回发后执行JavaScript
- java用于保存登录对象怎么写,利用对象流模仿登陆注册功能——Java对象流应用...
- flutter 人脸检测_Flutter - 通过指纹和人脸识别认证
- excel中最常用的30个函数_94个Excel常用函数目录
- html 绝对位置居中,如何在div中对绝对定位元素进行居中?
- Python读取PDF信息插入Word文档
- ~~线性筛法求素数(附模板题)