mirror of
https://github.com/xiaoqidun/goenv.git
synced 2024-11-22 08:06:46 +08:00
docs(更新文档): 更新文档
This commit is contained in:
parent
eeaa8b14d3
commit
7dc42aacc7
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
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user