This generates the declarations and validation methods. Since the types are directly enforced by the Go type checker, the Valid() methods return nil by default. All values are public by default with identifiers formatted as PascalCase.
/* File generated using `cddlc.exe gen`. DO NOT EDIT*/packagefoo// (cddlc) Ident: null-typetypeNullTypenil// Valid evaluates type constraints on null-type and returns nil if valid // else it returns a list of validation errorsfunc(null-type*NullType)Valid()error{returnnil}// (cddlc) Ident: true-altvarTrueAlt=true// Valid evaluates type constraints on true-alt and returns nil if valid // else it returns a list of validation errorsfunc(true-alt*TrueAlt)Valid()error{returnnil}// (cddlc) Ident: false-valvarFalseVal=false// Valid evaluates type constraints on false-val and returns nil if valid // else it returns a list of validation errorsfunc(false-val*FalseVal)Valid()error{returnnil}