This seems interesting even regardless of go. Is it realistic to create an executable which would work on very different kinds of Linux distros? e.g. 32-bit and 64-bit? Or maybe some general framework/library for building an arbitrary program at least for "any libc"?
Appimage exists that packs linux applications into a single executable file that you just download and open. It works on most linux distros
Yup. Just compile it as static executable. Static binaries are very undervalued imo.
Cosmopolitan goes one further: [binaries] that runs natively on Linux + Mac + Windows + FreeBSD + OpenBSD + NetBSD + BIOS on AMD64 and ARM64
https://justine.lol/cosmopolitan/