mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-11-24 05:03:16 +00:00
13 lines
234 B
Go
13 lines
234 B
Go
//go:build !windows
|
|
package client
|
|
|
|
import (
|
|
"context"
|
|
"net"
|
|
)
|
|
|
|
func dial(ctx context.Context, addr string) (net.Conn, error) {
|
|
network, address := parseDialTarget(addr)
|
|
return (&net.Dialer{}).DialContext(ctx, network, address)
|
|
}
|