mirror of
https://github.com/xiaoqidun/goenv.git
synced 2024-11-22 16:16:46 +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
|
```shell
|
||||||
export GOOS=windows
|
GOOS=linux
|
||||||
export GOARCH=amd64
|
GOARCH=amd64
|
||||||
export CGO_ENABLED=0
|
CGO_ENABLED=0
|
||||||
go build -o main_windows_amd64.exe main.go
|
go build -o main_linux_amd64 main.go
|
||||||
```
|
```
|
||||||
|
|
||||||
### 编译android程序
|
### 编译android程序
|
||||||
@ -52,6 +52,14 @@ export CGO_ENABLED=1
|
|||||||
go build -o main_android_arm64 main.go
|
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
|
## GOOS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user