1.golang交叉编译需要
golang.org/
└── x
├── net
├── sys
└── tools
golang.org/x/sys/unix 支持
cd $GOPATH/src/golang.org/x/
git clone https://github.com/golang/net.git
git clone https://github.com/golang/sys.git
git clone https://github.com/golang/tools.git
2.交叉编译shell脚本
https://github.com/thelark/go-build-tools
参考文献:
https://javasgl.github.io/go-get-golang-x-packages/
https://www.jianshu.com/p/1207276f3617
扫描二维码关注公众号,回复:
4924598 查看本文章