コード例 #1
0
// Clone returns a clone of tls.Config. This function is provided for
// compatibility for go1.7 that doesn't include this method in stdlib.
func Clone(c *tls.Config) *tls.Config {
	return c.Clone()
}
コード例 #2
0
ファイル: go18.go プロジェクト: quixoten/vault
func cloneTLSConfig(c *tls.Config) *tls.Config { return c.Clone() }
コード例 #3
0
// TLSConfigClone returns a clone of tls.Config. This function is provided for
// compatibility for go1.7 that doesn't include this method in stdlib.
func TLSConfigClone(c *tls.Config) *tls.Config {
	return c.Clone()
}