func (tv *TLSVersion) Set(value string) error {
	switch value {
	case "1.0":
		tv.ver = tls.VersionTLS10
	case "1.1":
		tv.ver = tls.VersionTLS11
	case "1.2":
		tv.ver = tls.VersionTLS12
	case "1.3":
		tv.ver = tls.VersionTLS13
	default:
		return fmt.Errorf("%s is not a TLS version", value)
	}
	return nil
}
// Set parses value as TLS version string, sets it.
Set parses value as TLS version string, sets it.
// Set parses value as TLS version string sets it .
func (tv *TLSVersion) Set(value string) error {
	switch value {
	case "1.0":
		tv.ver = tls.VersionTLS10
	case "1.1":
		tv.ver = tls.VersionTLS11
	case "1.2":
		tv.ver = tls.VersionTLS12
	case "1.3":
		tv.ver = tls.VersionTLS13
	default:
		return fmt.Errorf("%s is not a TLS version", value)
	}
	return nil
}
func ( tv * TLSVersion ) Set ( value string ) error { switch value { case " " : tv . ver = tls . VersionTLS10 case " " : tv . ver = tls . VersionTLS11 case " " : tv . ver = tls . VersionTLS12 case " " : tv . ver = tls . VersionTLS13 default : return fmt . Errorf ( " " , value ) } return nil }
Set parses value as TLS version string, sets it.
Set parses value as TLS version string sets it .