// GetHost url.Host without the port suffix
GetHost url.Host without the port suffix
// GetHost url . Host without the port suffix
func (u *URL) GetHost() string {
	if u == nil {
		return ""
	}
	i := strings.Index(u.Host, ":")
	if i == -1 {
		return u.Host
	}
	return u.Host[0:i]
}
func ( u * URL ) GetHost ( ) string { if u == nil { return " " } i := strings . Index ( u . Host , " " ) if i == - 1 { return u . Host } return u . Host [ 0 : i ] }
GetHost url.Host without the port suffix
GetHost url . Host without the port suffix