logoalt Hacker News

telotortiumlast Saturday at 1:30 PM0 repliesview on HN

os.UserHomeDir is specified to read the HOME environment variable, so it doesn’t require CGo. os/user does, but only to support NSS and LDAP, which are provided by libc. That’s also why net requires CGo- for getaddrinfo using resolv.conf