package
0.0.0-20240520070755-0a51978d1a23
Repository: https://github.com/wsva/common_lib.git
Documentation: pkg.go.dev

# Functions

AddIPOffset adds the provided integer offset to a base big.Int representing a net.IP NOTE: If you started with a v4 address and overflow it, you get a v6 result.
BigForIP creates a big.Int based on the provided net.IP.
copyHeader copies headers from one http.Header to another.
No description provided by the author
No description provided by the author
No description provided by the author
get public ip of this host use IP.String() to get a string */.
get public ip of this host use IP.String() to get a string dest ip:port */.
GetIndexedIP returns a net.IP that is subnet.IP + index in the contiguous IP space.
use IP.String() to get a string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
destination: ip:port */.
ParseCIDRs parses a list of cidrs and return error if any is invalid.
ParsePort parses a string representing an IP port.
ParsePortRange parses a string of the form "min-max", inclusive at both ends, and initializes a new PortRange from it.
No description provided by the author
RangeSize returns the size of a range in valid addresses.

# Structs

IPPortVar is used for validating a command line option that represents an IP and a port.
IPVar is used for validating a command line option that represents an IP.
PortRange represents a range of TCP/UDP ports.
PortRangeVar is used for validating a command line option that represents a port range.