Documentation
¶
Index ¶
- func CIDRContainsIP(cidr, ip string) bool
- func CIDRToIPRange(s string) ([]string, error)
- func Detect(ip, port string) bool
- func IPContains(ips string, target string) bool
- func IPExpanded(ipStr string) string
- func IPv4ToLong(ip net.IP) uint32
- func IsIP(ip string) bool
- func IsIPv4(ip string) bool
- func IsIPv6(ip string) bool
- func IsInvalidPort(s string) bool
- func IsPrivateIP(s string) (isIP bool, isPrivate bool)
- func LongToIP(longIP uint32) net.IP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CIDRContainsIP ¶
func CIDRToIPRange ¶
CIDRToIPRange return a list of a CIDR
func IPContains ¶
func IPExpanded ¶
func IPv4ToLong ¶
func IsInvalidPort ¶
func IsPrivateIP ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.