mirror of
https://github.com/xiaoqidun/goenv.git
synced 2024-12-22 13:41:06 +08:00
docs(更新文档): 更新文档
This commit is contained in:
parent
7ee98ef20c
commit
183014096f
18
README.md
18
README.md
@ -35,12 +35,12 @@ docker run --rm -it -v "${pwd}:/go/src/app" -w /go/src/app xiaoqidun/goenv
|
||||
|
||||
## 在容器内执行命令进行编译
|
||||
|
||||
### 编译windows程序
|
||||
### 编译linux程序
|
||||
```shell
|
||||
export GOOS=windows
|
||||
export GOARCH=amd64
|
||||
export CGO_ENABLED=0
|
||||
go build -o main_windows_amd64.exe main.go
|
||||
GOOS=linux
|
||||
GOARCH=amd64
|
||||
CGO_ENABLED=0
|
||||
go build -o main_linux_amd64 main.go
|
||||
```
|
||||
|
||||
### 编译android程序
|
||||
@ -52,6 +52,14 @@ export CGO_ENABLED=1
|
||||
go build -o main_android_arm64 main.go
|
||||
```
|
||||
|
||||
### 编译windows程序
|
||||
```shell
|
||||
export GOOS=windows
|
||||
export GOARCH=amd64
|
||||
export CGO_ENABLED=0
|
||||
go build -o main_windows_amd64.exe main.go
|
||||
```
|
||||
|
||||
# 编译说明
|
||||
|
||||
## GOOS
|
||||
|
Loading…
x
Reference in New Issue
Block a user