Build
Last updated
Was this helpful?
Last updated
Was this helpful?
Компиляция кода под конкретную платформу:
Установить GOOS
, GOARCH
Добавить суффикс файла:
file_GOARH.go
,
file_GOOS.go
file_GOOS_GOARCH.go
добавить file tag // +build os1[,arch1] [!os2[,arch2]]
Пример: