Dial connects to the given network address using net.Dial and then initiates a TLS handshake, returning the resulting TLS connection. Dial interprets a nil configuration as equivalent to the zero configuration; see the documentation of Config for the defaults.
(network, addr string, config *Config)
| 168 | // the zero configuration; see the documentation of Config |
| 169 | // for the defaults. |
| 170 | func Dial(network, addr string, config *Config) (*Conn, error) { |
| 171 | return DialWithDialer(new(net.Dialer), network, addr, config) |
| 172 | } |
| 173 | |
| 174 | // Dialer dials TLS connections given a configuration and a Dialer for the |
| 175 | // underlying connection. |
nothing calls this directly
no test coverage detected
searching dependent graphs…