新网创想网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

【环境篇】golang环境变量二三事(二)-创新互联

继续上篇文章的学习,今天来看看其他的环境变量。

创新互联建站成立于2013年,是专业互联网技术服务公司,拥有项目成都网站制作、成都网站设计、外贸营销网站建设网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元汝南做网站,已为上家服务,为汝南各地企业和个人服务,联系电话:18980820575

GOEXE

The executable file name suffix (".exe" on Windows, "" on other systems).

编译后的二进制文件后缀,在Windows平台是".exe",在其他平台是""。

GOFLAGS

这个变量看起来比较陌生,用的不多,我们看看文档里是怎么解释的:

A space-separated list of -flag=value settings to apply
to go commands by default, when the given flag is known by
the current command. Each entry must be a standalone flag.
Because the entries are space-separated, flag values must
not contain spaces. Flags listed on the command line
are applied after this list and therefore override it.

这段话大意是说GOFLAGS是个"-flag=value"的命令行参数列表,当执行go命令时,默认会添加这个环境变量里设置的参数。

GOTMPDIR

The directory where the go command will write temporary source files, packages, and binaries.

go命令的产生的源码、包、二进制文件存放的临时文件夹。

GOTOOLDIR

The directory where the go tools (compile, cover, doc, etc...) are installed.

存放go的工具包的路径。

未完待续。下篇主要讲跟cgo有关的环境变量。


欢迎关注我的公众号:onepunchgo,会整理相关的文档和资料。

【环境篇】golang环境变量二三事(二)

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


名称栏目:【环境篇】golang环境变量二三事(二)-创新互联
标题路径:http://www.wjwzjz.com/article/cdchcg.html
在线咨询
服务热线
服务热线:028-86922220
TOP