func ValidatePtr(x Ptr) error
ValidatePtr validates x.
func ValidateSpecialString(x string) error
ValidateSpecialString validates x.
type MyStruct struct { A int B string T time.Time // maps to builtin O *OtherStruct I *pkg2.ImportMe }
func (x *MyStruct) Complete() error
Complete completes x.
func (x *MyStruct) Validate() error
Validate validates x.
type Omit int
type OtherStruct struct { A string // D time.Duration // maps to builtin P pkg2.PickMe }
func (x *OtherStruct) Validate() error
Validate validates x.
type Ptr *struct { A int }
type String string
func (x String) ValidateCUE() error
ValidateCUE validates x.