code: func HasPort(s string) bool {
  	return strings.LastIndex(s, ":") > strings.LastIndex(s, "]")
  }
docs: // HasPort when given a string of the form "host", "host:port", or
  // "[ipv6::address]:port", returns true if the string includes a port.