Standard library / crypto/tls
tls.VersionTLS11
Numeric identifier for TLS11. Use MinVersion and MaxVersion for version policy. Obsolete protocol; identifier only, do not enable. The example prints the numeric identifier, not a negotiated value. Expected stdout: '770\n'.
Formal Syntax & Structure
go syntaxgo
const VersionTLS11 = 770Working Example
Example Snippetgo
package main
import ( "crypto/tls" "fmt")
func main() { fmt.Println(uint16(tls.VersionTLS11)) }
func must[T any](v T, e error) T { if e != nil { panic(e) } return v}func check(e error) { if e != nil { panic(e) }}