栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

如何使用go1.6.2为32位Linux构建

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

如何使用go1.6.2为32位Linux构建

GOOS=linux
GOARCH=386

更多示例:体系结构:

32-bit -> GOARCH=38664-bit -> GOARCH=amd64

作业系统:

Windows -> GOOS=windowsLinux   -> GOOS=linux OS X    -> GOOS=darwinFreeBSD -> GOOS=freebsd

有关完整列表(有效的“个体”值),请参考

go/build/syslist.go
文件:

const goosList = "android darwin dragonfly freebsd linux nacl netbsd openbsd plan9 solaris windows "const goarchList = "386 amd64 amd64p32 arm armbe arm64 arm64be ppc64 ppc64le mips mipsle mips64 mips64le mips64p32 mips64p32le ppc s390 s390x sparc sparc64 "

请注意,以上列表是一个不断增长的列表,不再删除不再受支持的平台(因为该列表用于go / build文件名匹配)。

对于当前列表,所有受支持的平台(GOOS / GOARCH组合),请使用以下命令:

go tool dist list

GOOS
+
GOARCH
(source)的有效组合:

$GOOS   $GOARCHdarwin  386darwin  amd64darwin  armdarwin  arm64dragonfly   amd64freebsd 386freebsd amd64freebsd armlinux   386linux   amd64linux   armlinux   arm64linux   ppc64linux   ppc64lelinux   mips64linux   mips64lenetbsd  386netbsd  amd64netbsd  armopenbsd 386openbsd amd64openbsd armplan9   386plan9   amd64solaris amd64windows 386windows amd64


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/594945.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号