...

Package pkg1

import "cuelang.org/go/encoding/gocode/testdata/pkg1"
Overview
Index

Overview ▾

func ValidatePtr

func ValidatePtr(x Ptr) error

ValidatePtr validates x.

func ValidateSpecialString

func ValidateSpecialString(x string) error

ValidateSpecialString validates x.

type MyStruct

type MyStruct struct {
    A int
    B string
    T time.Time // maps to builtin
    O *OtherStruct
    I *pkg2.ImportMe
}

func (*MyStruct) Complete

func (x *MyStruct) Complete() error

Complete completes x.

func (*MyStruct) Validate

func (x *MyStruct) Validate() error

Validate validates x.

type Omit

type Omit int

type OtherStruct

type OtherStruct struct {
    A string
    // D time.Duration // maps to builtin
    P pkg2.PickMe
}

func (*OtherStruct) Validate

func (x *OtherStruct) Validate() error

Validate validates x.

type Ptr

type Ptr *struct {
    A int
}

type String

type String string

func (String) ValidateCUE

func (x String) ValidateCUE() error

ValidateCUE validates x.