Standard library / crypto/x509/pkix
crypto/x509/pkix.AttributeTypeAndValueSET
PKCS#10 attribute structure holding an OID and sets of attribute sequences; use higher-level CSR APIs for ordinary requests. Expected stdout: '1.2.3\n'.
Formal Syntax & Structure
go syntaxgo
type AttributeTypeAndValueSET struct { Type asn1.ObjectIdentifier Value [][]AttributeTypeAndValue `asn1:"set"`}Working Example
Example Snippetgo
package main
import ( "crypto/x509/pkix" "encoding/asn1" "fmt")
func main() { a := pkix.AttributeTypeAndValueSET{Type: asn1.ObjectIdentifier{1, 2, 3}} fmt.Println(a.Type.String())}
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) }}