back

by dmit·13y ago·view on hn ↗
>I believe net/http does uses OS's C library and therefore cannot be cross-compiled that easily

For whatever it's worth, I think CGO is only needed for native DNS resolution. If you (cross-)compile with CGO_ENABLED=0, then net/* will fall back to a pure Go DNS resolver, for which the only requirement is a valid /etc/resolv.conf on the target system.