logoalt Hacker News

anupcshanyesterday at 8:32 PM2 repliesview on HN

It's not just about overhead/performance. cgo-free means no need to set up a cross-compiler if targeting other devices. Just "go build" with the right GOARCH and GOOS will let you compile a binary that will run on most devices.


Replies

dizhnyesterday at 8:38 PM

Static builds cannot have cgo too if I am not mistaken.

show 1 reply
usrnmyesterday at 8:38 PM

I'm pretty sure that C is a much better choice if you really care about binaries that run on most devices

show 2 replies