code: func New(startingPort, endingPort int) (PortAllocator, error) {
  	if endingPort > 65535 {
  		return nil, errors.New("Invalid port range requested. Ports can only be numbers between 0-65535")
  	}
  	return &portAllocator{
  		nextPort:   uint16(startingPort),
  		endingPort: uint16(endingPort),
  	}, nil
  }
docs: // New creates a new port allocator
  // startingPort indicates the first port that will be assigned by the ClaimPorts() function.
  // endingPort indicates the maximum port number that this allocator may assign.
  //
  // returns a non-nil error if the ending port exceeds the IANA maximum of 65535.