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

This commit is contained in:
xiaoqidun 2020-09-23 14:22:42 +08:00
parent 521deaa963
commit e2637b87b5

@ -23,3 +23,18 @@ export GOARCH=arm64
export CGO_ENABLED=1 export CGO_ENABLED=1
go build -o main_android_arm64 main.go go build -o main_android_arm64 main.go
``` ```
# 编译项目
## 将项目文件映射到容器内部
```bat
docker run --rm -it -v %cd%:/go/src/app -w /go/src/app xiaoqidun/goenv
```
## 在容器内执行命令进行编译
```shell
export GOOS=windows
export GOARCH=amd64
export CGO_ENABLED=0
go build -o main_windows_amd64.exe main.go
```