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
参考文献: