# Functions
NewPort creates a new instance of a Port given a protocol and port number or port range.
ParsePort parses the port number string and returns an int.
ParsePortRange parses and validates the specified string as a port-range (8000-9000).
ParsePortRangeToInt parses the port range string and returns start/end ints.
ParsePortSpec parses a port specification string into a slice of PortMappings.
ParsePortSpecs receives port specs in the format of ip:public:private/proto and parses these in to the internal types.
Sort sorts a list of ports using the provided predicate This function should compare `i` and `j`, returning true if `i` is considered to be less than `j`.
SortPortMap sorts the list of ports and their respected mapping.
SplitProtoPort splits a port in the format of proto/port.
# Structs
PortBinding represents a binding between a Host IP address and a Host Port.
PortMapping is a data object mapping a Port to a PortBinding.