How can I create a static Go application that runs on every Linux distribution?
Is it enough just to compile Go statically as in: http://blog.hashbangbash.com/2014/04/linking-golang-statically/
How can I create a static Go application that runs on every Linux distribution?
Is it enough just to compile Go statically as in: http://blog.hashbangbash.com/2014/04/linking-golang-statically/
It will work on every Linux distro if you've compiled for GOOS==linux as long as the architecture is supported (amd64/x86 etc.), and the required syscalls are available. This is usually determined by your Linux kernel version.