func (p PortRange) String() string {
	protocol := strings.ToLower(p.Protocol)
	if protocol == "icmp" {
		return protocol
	}
	if p.FromPort == p.ToPort {
		return fmt.Sprintf("%d/%s", p.FromPort, protocol)
	}
	return fmt.Sprintf("%d-%d/%s", p.FromPort, p.ToPort, protocol)
}
// String returns a formatted representation of this port range.
String returns a formatted representation of this port range.
// String returns a formatted representation of this port range .
func (p PortRange) String() string {
	protocol := strings.ToLower(p.Protocol)
	if protocol == "icmp" {
		return protocol
	}
	if p.FromPort == p.ToPort {
		return fmt.Sprintf("%d/%s", p.FromPort, protocol)
	}
	return fmt.Sprintf("%d-%d/%s", p.FromPort, p.ToPort, protocol)
}
func ( p PortRange ) String ( ) string { protocol := strings . ToLower ( p . Protocol ) if protocol == " " { return protocol } if p . FromPort == p . ToPort { return fmt . Sprintf ( " " , p . FromPort , protocol ) } return fmt . Sprintf ( " " , p . FromPort , p . ToPort , protocol ) }
String returns a formatted representation of this port range.
String returns a formatted representation of this port range .