设为首页 加入收藏

TOP

Go语言交叉编译工具gox(二)
2019-06-14 00:07:47 】 浏览:213
Tags:语言 交叉 编译 工具 gox
}...) Platforms_1_5 = append(Platforms_1_4, []Platform{ {"darwin", "arm", false}, {"darwin", "arm64", false}, {"linux", "arm64", false}, {"linux", "ppc64", false}, {"linux", "ppc64le", false}, }...) Platforms_1_6 = append(Platforms_1_5, []Platform{ {"android", "386", false}, {"linux", "mips64", false}, {"linux", "mips64le", false}, }...) Platforms_1_7 = append(Platforms_1_5, []Platform{ // While not fully supported s390x is generally useful {"linux", "s390x", true}, {"plan9", "arm", false}, // Add the 1.6 Platforms, but reflect full support for mips64 and mips64le {"android", "386", false}, {"linux", "mips64", true}, {"linux", "mips64le", true}, }...) Platforms_1_8 = append(Platforms_1_7, []Platform{ {"linux", "mips", true}, {"linux", "mipsle", true}, }...)

除了刚才的命令外还有另一种生成方式,用斜杠的方式将系统与架构合并批量生成。

gox -osarch "windows/amd64 linux/amd64"

赶紧把你生成的程序发给小伙伴执行试试吧,以上就是本文全部内容,感谢阅读。

首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇PHP转Go系列:map映射 下一篇PHP转Go系列:数组与切片

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目