add Golang cross build note

This commit is contained in:
Alexander Popov 2021-11-03 03:41:16 +03:00
parent b9f4110c28
commit 58263a2861
Signed by: iiiypuk
GPG Key ID: 398FC73478D97286
4 changed files with 21 additions and 1 deletions

View File

@ -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)

View 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

View File

@ -1,5 +1,6 @@
# *nix notes
=> tmux.gmi Горячие клавиши tmux
=> go_cross_build.gmi Кросс-компиляция в Golang
=> ../ Back to home

View File

@ -27,4 +27,4 @@ Ctrl + b $
Ctrl + b d
```
=> ../ Back to home
=> index.gmi Back to home