Standard library / crypto/tls

tls.VersionTLS10

Numeric identifier for TLS10. 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: '769\n'.

Formal Syntax & Structure

go syntaxgo
const VersionTLS10 = 769

Working Example

Example Snippetgo
package main
import (  "crypto/tls"  "fmt")
func main() { fmt.Println(uint16(tls.VersionTLS10)) }
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)  }}
Go Reference