# README
iputil
The package contains various helpers to interact with ips and cidrs
# Functions
AsIPV4CIDR converts ipv4 ip to cidr string.
AsIPV4CIDR converts ipv4 cidr to net.IPNet pointer.
AsIPV4CIDR converts ipv6 ip to cidr string.
AsIPV6IpNet converts ipv6 cidr to net.IPNet pointer.
CanExtend determines if the provided hosts (ip,short ip, hostname) can be extended to ip.
GetBindableAddress on port p from a list of ips.
GetSourceIP gets the local ip based the destination ip.
IsCIDR checks if the string is an valid CIDR notiation (IPV4 & IPV6).
IsCIDR checks if the string is an valid CIDR after replacing - with /.
Check if an IP address is part of the list of internal IPs we have declared.
Check if an IP address is part of the list of internal IPs we have declared.
Check if an IP address is part of the list of internal IPs we have declared checks for all ipv4 and ipv6 list.
IsIP checks if a string is either IP version 4 or 6.
IsIPv4 checks if the string is an IP version 4.
IsIPv6 checks if the string is an IP version 6.
IsPort checks if a string represents a valid port.
ToCidr converts a cidr string to net.IPNet pointer.
ToFQDN performs a reverse PTR using default system resolvers.
TryRealIP attemps to extend a host (ip, short ip, hostname) to its extended ip version.
WhatsMyIP attempts to obtain the external ip through public api.
# Constants
No description provided by the author