code: func IsLocalhost(host string) bool {
  	if host == "localhost" {
  		return true
  	}
  	ip := net.ParseIP(host)
  	return ip.IsLoopback() || ip.IsUnspecified()
  }
docs: // IsLocalhost returns true if this is a local hostname or ip