Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
bitbasher
4mo ago
0 comments
Share
Perhaps I misremembered or things changed? For instance, the os/user results in a dynamicly linked executable:
https://play.golang.com/p/7QsmcjJI4H5
There are multiple standard library functions that do it.. I recall some in "net" and some in "os".
0 comments
default
newest
oldest
telotortium
4mo ago
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
j
/
k
navigate · click thread line to collapse