go/src/net/hosts.go

const cacheMaxAge

func parseLiteralIP(addr string) string {}

type byName

var hosts

func readHosts() {}

// lookupStaticHost looks up the addresses and the canonical name for the given host from /etc/hosts.
func lookupStaticHost(host string) ([]string, string) {}

// lookupStaticAddr looks up the hosts for the given address from /etc/hosts.
func lookupStaticAddr(addr string) []string {}