golang environment
docker pull xiaoqidun/goenv:latest
docker run -it --rm xiaoqidun/goenv
以编译android arm64程序为例
export CC=aarch64-linux-android21-clang export GOOS=android export GOARCH=arm64 export CGO_ENABLED=1 go build -o main_android_arm64 main.go