By default, even programs that are pure Go do link aginst libc if they
do any DNS lookups or user name lookups. This is because those
operations are highly system-dependent to deal with things like
firewalls and LDAP.
You can force the use of a pure-Go DNS lookup by building with "-tags
netgo". Note that that means that your program will not honor the
/etc/nsswitch.conf file. Or you can build your program on your CentOS
machine.
Ian