github.com/shishir-a412ed/docker@v1.3.2-0.20180103180333-fda904911d87/client/tlsconfig_clone.go (about)

     1  // +build go1.8
     2  
     3  package client
     4  
     5  import "crypto/tls"
     6  
     7  // tlsConfigClone returns a clone of tls.Config. This function is provided for
     8  // compatibility for go1.7 that doesn't include this method in stdlib.
     9  func tlsConfigClone(c *tls.Config) *tls.Config {
    10  	return c.Clone()
    11  }