(addr string, cfg *tls.Config)
| 25 | } |
| 26 | |
| 27 | func DialTLS(addr string, cfg *tls.Config) (*Client, error) { |
| 28 | c, err := tls.Dial("tcp", addr, cfg) |
| 29 | if err != nil { |
| 30 | return nil, err |
| 31 | } |
| 32 | |
| 33 | return &Client{ |
| 34 | c: c, |
| 35 | r: bufio.NewReader(c), |
| 36 | }, nil |
| 37 | } |
| 38 | |
| 39 | func (c *Client) Close() error { |
| 40 | return c.c.Close() |
nothing calls this directly
no outgoing calls
no test coverage detected