const unixProtocol … // CreateListener creates a listener on the specified endpoint. func CreateListener(endpoint string) (net.Listener, error) { … } // GetAddressAndDialer returns the address parsed from the given endpoint and a context dialer. func GetAddressAndDialer(endpoint string) (string, func(ctx context.Context, addr string) (net.Conn, error), error) { … } func dial(ctx context.Context, addr string) (net.Conn, error) { … } func parseEndpointWithFallbackProtocol(endpoint string, fallbackProtocol string) (protocol string, addr string, err error) { … } func parseEndpoint(endpoint string) (string, string, error) { … }