docs(更新文档): 更新文档

This commit is contained in:
xiaoqidun 2020-09-22 16:45:17 +08:00
parent eeaa8b14d3
commit 7dc42aacc7

View File

@ -10,7 +10,18 @@ golang environment
docker pull xiaoqidun/goenv:latest
```
## 使用镜像
## 运行镜像
```
docker run -it --rm xiaoqidun/goenv
```
# 交叉编译
> 以编译android arm64程序为例
```shell
export CC=aarch64-linux-android21-clang
export GOOS=android
export GOARCH=arm64
export CGO_ENABLED=1
go build -o main_android_arm64 main.go
```