var net.hosts
22 uses
net (current package)
hosts.go#L32: var hosts struct {
hosts.go#L56: if now.Before(hosts.expire) && hosts.path == hp && len(hosts.byName) > 0 {
hosts.go#L60: if err == nil && hosts.path == hp && hosts.mtime.Equal(mtime) && hosts.size == size {
hosts.go#L61: hosts.expire = now.Add(cacheMaxAge)
hosts.go#L94: hosts.expire = now.Add(cacheMaxAge)
hosts.go#L95: hosts.path = hp
hosts.go#L96: hosts.byName = hs
hosts.go#L97: hosts.byAddr = is
hosts.go#L98: hosts.mtime = mtime
hosts.go#L99: hosts.size = size
hosts.go#L105: hosts.Lock()
hosts.go#L106: defer hosts.Unlock()
hosts.go#L108: if len(hosts.byName) != 0 {
hosts.go#L113: if ips, ok := hosts.byName[absDomainName(lowerHost)]; ok {
hosts.go#L124: hosts.Lock()
hosts.go#L125: defer hosts.Unlock()
hosts.go#L131: if len(hosts.byAddr) != 0 {
hosts.go#L132: if hosts, ok := hosts.byAddr[addr]; ok {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |