This is a repository demonstrating how to build a fat binary for a Go application using Cosmopolitan Libc.
We build two binaries, one for amd64 and one for arm64, using GOOS
and GOARCH
. These binaries are then embedded into a Cosmopolitan Libc executable, which detects the architecture at runtime, writes the appropriate binary to a temporary file, and executes it.