Hacker News new | ask | show | jobs
by swills 192 days ago
You can definitely use CGO and still build statically, but you do need to set ldflags to include -static.
1 comments

You can even cross-compile doing that.
Yes, indeed, I do.