- Cross-compile linux program with powershell in VS Code on Windows system
$env:GOOS="linux" $env:GOARCH="amd64" go build -ldflags "-s -w" -o BIN SRC.go
- Cross-compile windows program on linux system
GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o BIN SRC.go
- Cross-compile Arm program on linux system
GOOS=linux GOARCH=arm go build -ldflags "-s -w" -o BIN SRC.go
-
Notifications
You must be signed in to change notification settings - Fork 0
License
DoubleChuang/GoLearning
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published