package
0.0.0-20241102221056-eb2fa4d51d96
Repository: https://github.com/g0rbe/gmod.git
Documentation: pkg.go.dev

# Functions

Convert any IPType to net.IP.
GetList creates a list of address on the given IPNet.
GetList4 creates a list of IPv4 address on the given IPNet.
GetList6 creates a list of IPv6 address on the given IPNet.
GetPublic is return a *non reserved* IP address.
GetPublic4 is return a *non reserved* IPv4 address.
GetPublic6 is return a *non reserved* IPv6 address.
GetRandom is return a random IP address.
GetRandom4 is return a random IPv4 address.
GetRandom6 is return a random IPv6 address.
Increase ip to the next address.
IsLAN checks whether the given IP is in your LAN's subnet by iteraet over the interfaces.
IsReservedIP checks whether ip is in the reserved address range.
IsReserved4 checks if the given IPv4 address is reserved.
IsReserved6 checks if the given IPv6 address is reserved.
IsValidIP checks whether ip is valid IP address.
IsValid4 checks whether ip is valid IPv4 address.
IsValid6 checks whether ip is valid IPv6 address.

# Variables

/127 network mask.
/128 network mask.
/31 network mask.
/32 network mask.
ReservedIPv4 is a collection of reserved IPv4 addresses.
ReservedIPv6 is a collection of reserved IPv6 addresses.

# Interfaces

No description provided by the author