Gemini/public/ru/notes/unix/go_cross_build.gmi

17 lines
393 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Кросс-компиляция в 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