code: func GetAddressAndDialer(endpoint string) (string, func(addr string, timeout time.Duration) (net.Conn, error), error) {
  	protocol, addr, err := parseEndpoint(endpoint)
  	if err != nil {
  		return "", nil, err
  	}
  
  	if protocol == tcpProtocol {
  		return addr, tcpDial, nil
  	}
  
  	if protocol == npipeProtocol {
  		return addr, npipeDial, nil
  	}
  
  	return "", nil, fmt.Errorf("only support tcp and npipe endpoint")
  }
docs: // GetAddressAndDialer returns the address parsed from the given endpoint and a dialer.