Standard library / crypto/x509

crypto/x509.ConstraintViolationError

Error indicating certificate constraint violation; no exported fields. Synthetic error instance. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
type ConstraintViolationError struct{}

Working Example

Example Snippetgo
package main
import (  "crypto/x509"  "fmt")
func main() { var e error = x509.ConstraintViolationError{}; fmt.Println(e != nil) }
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