Get the latest tech news
Building Statically Linked Go Executables with CGO and Zig
Jim Calabro
This is a short post about how to create a statically linked Go executable that calls in to CGO dependencies using Zig. We'll now build the Go executable and statically link it with this bash command: I'm incredibly grateful that I'm building at a time where our tools are getting extremely good.
Or read this on Hacker News