Documentation
¶
Index ¶
- Constants
- func GetIpVersion(ip *net.IP) int
- func GetStartEndCidr(startIpAddress *net.IP, endIpAddress *net.IP, checkBoundary bool) (string, error)
- func IntToIpv4(ipNum uint32) net.IP
- func IsLocalhost(hostname string) bool
- func NetworkFromTarget(target string) (*net.IPNet, error)
- func ParseAddressNet(addressNet string) (*net.IPNet, error)
- func SplitAddress(address string) (string, int, error)
Constants ¶
View Source
const ( ProtocolIcmp = 1 ProtocolTcp = 6 ProtocolUdp = 17 ProtocolIcmp6 = 58 )
View Source
const Localhost = "localhost"
Variables ¶
This section is empty.
Functions ¶
func GetIpVersion ¶
func GetStartEndCidr ¶
func IsLocalhost ¶
IsLocalhost reports whether the hostname names the machine it is resolved on. RFC 6761 reserves "localhost" and everything under it for the purpose, so the subdomains count too.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package publicsuffix provides a public suffix list based on data from https://publicsuffix.org/
|
Package publicsuffix provides a public suffix list based on data from https://publicsuffix.org/ |
|
types
|
|
Click to show internal directories.
Click to hide internal directories.