Versions in this module Expand all Collapse all v1 v1.5.2 May 1, 2024 v1.5.1 May 1, 2024 Changes in this version type Type + func (t Type) IsStructOrStructPointer() bool + func (t Type) IsStructPointer() bool v1.5.0 May 1, 2024 v1.4.0 Jul 31, 2023 Changes in this version type Kind + const K_UNION + type Term struct + Tilde bool + Type *Type type Type + Embeddeds []*Type + Origin *Type + Terms []*Term + TypeArgs []*Type + TypeParams []*TypeParam + func (t *Type) VisibleFields() []*StructField + type TypeParam struct + Constraint *Type + Name string + Pkg Pkg + type TypeParamer interface + TypeParams func() *types.TypeParamList v1.3.1 Oct 14, 2022 v1.3.0 Oct 13, 2022 Changes in this version type Type + func (t *Type) CanError() bool v1.2.1 Oct 12, 2022 Changes in this version type Type + func (t *Type) IsIncluded() bool v1.2.0 Oct 2, 2022 Changes in this version type Type + func (t *Type) Implements(u *Type) bool + func (t *Type) IsIdentical(u *Type) bool v1.1.1 Oct 1, 2022 v1.1.0 Sep 26, 2022 Changes in this version type Method + Pkg Pkg type StructField + CanIgnore bool + Pkg Pkg + func (f *StructField) CanAccess(from Pkg) bool type Type + func MustGetType(pkgpath, name string, a *search.AST) *Type + func (t *Type) IsComparable() bool + func (t Type) TypeString(pkg *Pkg) string v1.0.0 Sep 16, 2022 Changes in this version + func IsErrorAggregator(t *Type) bool + func IsErrorConstructor(t *Type) bool + func IsErrorConstructorFunc(t *Type) bool + type Analyzer struct + func NewAnalyzer(p *types.Package) (a *Analyzer) + func (a *Analyzer) Analyze(t types.Type) (u *Type) + func (a *Analyzer) Consts(t *Type, ast *search.AST) (consts []Const) + func (a *Analyzer) Object(obj types.Object) (u *Type) + func (an *Analyzer) Validator(named *types.Named) *Validator + type AssignmentStatus uint + const ASSIGNMENT_CONVERT + const ASSIGNMENT_INVALID + const ASSIGNMENT_OK + type Const struct + Name string + Pkg Pkg + type ContextField struct + Name string + type ErrorHandlerField struct + IsAggregator bool + Name string + type FieldSelector []*StructField + func (s FieldSelector) CopyWith(f *StructField) FieldSelector + func (s FieldSelector) Last() *StructField + type Func struct + Name string + Type *Type + type Kind uint + const K_ARRAY + const K_BOOL + const K_BYTE + const K_CHAN + const K_COMPLEX128 + const K_COMPLEX64 + const K_FLOAT32 + const K_FLOAT64 + const K_FUNC + const K_INT + const K_INT16 + const K_INT32 + const K_INT64 + const K_INT8 + const K_INTERFACE + const K_INVALID + const K_MAP + const K_PTR + const K_RUNE + const K_SLICE + const K_STRING + const K_STRUCT + const K_UINT + const K_UINT16 + const K_UINT32 + const K_UINT64 + const K_UINT8 + const K_UINTPTR + const K_UNSAFEPOINTER + func (k Kind) BasicString() string + func (k Kind) IsBasic() bool + func (k Kind) IsFloat() bool + func (k Kind) IsInteger() bool + func (k Kind) IsNumeric() bool + func (k Kind) IsUnsigned() bool + func (k Kind) String() string + type Method struct + IsExported bool + IsImported bool + Name string + Type *Type + type MethodInfo struct + Name string + type Methoder interface + Method func(i int) *types.Func + NumMethods func() int + type Pkg struct + Local string + Name string + Path string + type StructField struct + IsEmbedded bool + IsExported bool + Name string + Tag string + Type *Type + Var *types.Var + type Type struct + ArrayLen int64 + Elem *Type + Fields []*StructField + In []*Var + IsByte bool + IsExported bool + IsImported bool + IsRune bool + IsVariadic bool + Key *Type + Kind Kind + Methods []*Method + Name string + Out []*Var + Pkg Pkg + func (t *Type) CanAssign(u *Type) AssignmentStatus + func (t *Type) CanConvert(u *Type) bool + func (t *Type) HasIsValid() bool + func (t *Type) HasLength() bool + func (t *Type) Identical(u *Type) bool + func (t *Type) IsBuiltin() bool + func (t *Type) IsEmptyInterface() bool + func (t *Type) IsGoAny() bool + func (t *Type) IsGoAnySlice() bool + func (t *Type) IsGoError() bool + func (t *Type) IsGoString() bool + func (t *Type) IsNilable() bool + func (t *Type) NeedsConversion(u *Type) bool + func (t *Type) PtrOf(u *Type) bool + func (t Type) Is(kinds ...Kind) bool + func (t Type) String() string + type Validator struct + AfterValidateMethod *MethodInfo + BeforeValidateMethod *MethodInfo + ContextField *ContextField + ErrorHandlerField *ErrorHandlerField + Type *Type + type Var struct + Name string + Type *Type + func (v *Var) ShallowCopy() *Var