Standard library / crypto/tls

tls.QUICEncryptionLevelInitial

Initial protection level; QUIC derives Initial secrets from the destination connection ID, not TLS events. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
const QUICEncryptionLevelInitial QUICEncryptionLevel

Working Example

Example Snippetgo
package main
import (  "crypto/tls"  "fmt")
func main() { fmt.Println(tls.QUICEncryptionLevelInitial == 0) }
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