编译设置如下:
export GOARCH=ARM
export GOOS=linux
./all.bash
在Android下运行
adb pull x.out /data/local/tmp
adb shell
cd /data/local/tmp
./x.out
详细请参考《Go语言编程》
The Original Link: http://baham.github.io/12_16_zai-androidxia-yun-xing-goyu-yan-cheng-xu.html
If you want to reprint it, please do under the CC BY-NC-SA 4.0