mirror of
https://github.com/xiaoqidun/goenv.git
synced 2025-01-23 00:59:31 +08:00
docs(更新文档): 更新文档
This commit is contained in:
13
README.md
13
README.md
@ -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
|
||||
```
|
Reference in New Issue
Block a user