Re:Thoughts on Go after writing 3 websites
by dmit on Tuesday January 01, 2013 @07:06AM
(#4992463)
>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.
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.