.Net can compile to a self-contained binary: https://learn.microsoft.com/en-us/dotnet/core/deploying/nati...
$ go build -o hello main.go
$ file hello && ldd hello
hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, Go
linux-vdso.so.1 (0x00007f9c7b404000)
libc.so.6 => /usr/lib/x86_64-linux-gnu/libc.so.6 (0x00007f9c7b1ce000)
/lib64/ld-linux-x86-64.so.2 (0x00007f9c7b406000)(full disclosure, I don't think I ever had my service look up the address of localhost)
edit: seems like you probably have CGO_ENABLED=1, which is now the default and will cause simple networking things to use libc. Set CGO_ENABLED=0 and you won't have libc.
CGO_ENABLED=0 breaks nsswitch etc. and overall makes Go a poor ecosystem inhabitant. Only usable if you only care about your own system.
Ahaaa, that clicks. Yes, I tend to build software that only cares about my own systems.
But nevertheless , if any language provides something like that, win-win for entire ecosystem.