Standard library / crypto/x509/pkix
crypto/x509/pkix.RelativeDistinguishedNameSET
Set of attribute/value pairs forming one relative distinguished name. Expected stdout: '1\n'.
Formal Syntax & Structure
go syntaxgo
type RelativeDistinguishedNameSET []AttributeTypeAndValueWorking Example
Example Snippetgo
package main
import ( "crypto/x509/pkix" "encoding/asn1" "fmt")
func main() { r := pkix.RelativeDistinguishedNameSET{{Type: asn1.ObjectIdentifier{2, 5, 4, 3}, Value: "Demo"}} fmt.Println(len(r))}
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) }}