Dial connects to the given network address and initiates a TLS handshake, returning the resulting TLS connection. The returned Conn, if any, will always be of type *Conn. Dial uses context.Background internally; to specify the context, use DialContext.
(network, addr string)
| 194 | // Dial uses context.Background internally; to specify the context, |
| 195 | // use DialContext. |
| 196 | func (d *Dialer) Dial(network, addr string) (net.Conn, error) { |
| 197 | return d.DialContext(context.Background(), network, addr) |
| 198 | } |
| 199 | |
| 200 | func (d *Dialer) netDialer() *net.Dialer { |
| 201 | if d.NetDialer != nil { |
nothing calls this directly
no test coverage detected