mirror of
https://github.com/xiaoqidun/goenv.git
synced 2024-11-26 09:56:46 +08:00
docs(更新文档): 更新文档
This commit is contained in:
parent
521deaa963
commit
e2637b87b5
15
README.md
15
README.md
@ -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
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user