add Golang cross build note
This commit is contained in:
parent
b9f4110c28
commit
58263a2861
@ -1,3 +1,6 @@
|
||||
## Using Software
|
||||
* Server: [agate](https://github.com/mbrubeck/agate)
|
||||
* HTTP proxy: [kineto](https://git.sr.ht/~sircmpwn/kineto)
|
||||
|
||||
## Mirror
|
||||
* my [Gitea](https://iiiypuk.me/git/iiiypuk/Gemini)
|
||||
|
16
public/posts/unix/go_cross_build.gmi
Normal file
16
public/posts/unix/go_cross_build.gmi
Normal file
@ -0,0 +1,16 @@
|
||||
# Кросс-компиляция в Golang
|
||||
|
||||
## Переменные окружения для указания архитектуры
|
||||
```
|
||||
env GOOS=target-OS GOARCH=target-architecture go build package-import-path
|
||||
```
|
||||
|
||||
## Неполный список GOOS & GOARCH
|
||||
```
|
||||
windows - amd64, 386
|
||||
openbsd - arm, amd64, 386
|
||||
linux - arm64, arm, amd64, 386
|
||||
android - arm
|
||||
```
|
||||
|
||||
=> index.gmi Back to home
|
@ -1,5 +1,6 @@
|
||||
# *nix notes
|
||||
|
||||
=> tmux.gmi Горячие клавиши tmux
|
||||
=> go_cross_build.gmi Кросс-компиляция в Golang
|
||||
|
||||
=> ../ Back to home
|
||||
|
@ -27,4 +27,4 @@ Ctrl + b $
|
||||
Ctrl + b d
|
||||
```
|
||||
|
||||
=> ../ Back to home
|
||||
=> index.gmi Back to home
|
||||
|
Loading…
Reference in New Issue
Block a user