func (h Hostname) String() string {
	switch {
	case h.FQDN != "":
		return h.FQDN
	case !h.StaticIP.Equal(zeroIP):
		return h.StaticIP.String()
	case h.Hostname != "":
		return h.Hostname
	case !h.DynamicIP.Equal(zeroIP):
		return h.DynamicIP.String()
	default:
		return "-"
	}
}
// String is the RFC 5424 representation of the hostname.
String is the RFC 5424 representation of the hostname.
// String is the RFC 5424 representation of the hostname .
func (h Hostname) String() string {
	switch {
	case h.FQDN != "":
		return h.FQDN
	case !h.StaticIP.Equal(zeroIP):
		return h.StaticIP.String()
	case h.Hostname != "":
		return h.Hostname
	case !h.DynamicIP.Equal(zeroIP):
		return h.DynamicIP.String()
	default:
		return "-"
	}
}
func ( h Hostname ) String ( ) string { switch { case h . FQDN != " " : return h . FQDN case ! h . StaticIP . Equal ( zeroIP ) : return h . StaticIP . String ( ) case h . Hostname != " " : return h . Hostname case ! h . DynamicIP . Equal ( zeroIP ) : return h . DynamicIP . String ( ) default : return " " } }
String is the RFC 5424 representation of the hostname.
String is the RFC 5424 representation of the hostname .