Cross compile
How to compile a golang application and distribute to multiple platforms. How to cross-compile golang application.
env GOOS=target-OS GOARCH=target-architecture go build package-import-path
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
How to compile a golang application and distribute to multiple platforms. How to cross-compile golang application.
env GOOS=target-OS GOARCH=target-architecture go build package-import-path