Skip to content

Instantly share code, notes, and snippets.

View merlinvn's full-sized avatar

Nguyen Tran merlinvn

View GitHub Profile
@Xarkam
Xarkam / Build go from powershell.ps1
Last active January 10, 2024 03:07
Build go from powershell
#Inspired from https://github.com/golang/go/wiki/WindowsCrossCompiling
#Use -ldflags="-s -w" to reduce binary size
$env:GOOS="windows";$env:GOARCH="386"; go build -o .\hello.exe .\hello.go