Versions in this module Expand all Collapse all v0 v0.1.0 Jun 2, 2023 Changes in this version + var DefaultConfig = &packages.Config + func CompatibleTypes(expected types.Type, actual types.Type) error + func ImportPathForDir(dir string) (res string) + func Indirect(t reflect.Type) reflect.Type + func NameForDir(dir string) string + func NormalizeVendor(pkg string) string + func PkgAndType(name string) (string, string) + func PkgName(ident string) string + func PkgPath(config *packages.Config, target string) (string, error) + func PkgShortName(pkgPath string) string + func QualifyPackagePath(importPath string) string + func SanitizePackageName(pkg string) string + func TypeName(ident string) string + type Packages struct + func (p *Packages) Count() int + func (p *Packages) Errors() PkgErrors + func (p *Packages) Evict(importPath string) + func (p *Packages) Load(importPath string) *packages.Package + func (p *Packages) LoadAll(importPaths ...string) []*packages.Package + func (p *Packages) LoadWithTypes(importPath string) *packages.Package + func (p *Packages) ModTidy() error + func (p *Packages) NameForPackage(importPath string) string + func (p *Packages) ReloadAll(importPaths ...string) []*packages.Package + type PkgErrors []error + func (p PkgErrors) Error() string + type RType struct + Ident string + Kind reflect.Kind + Methods map[string]struct{ ... } + Name string + PkgPath string + func ParseGoType(typ any) (*RType, error) + func (r *RType) IsPtr() bool + func (r *RType) String() string + func (r *RType) TypeEqual(t reflect.Type) bool + func (r RType) ReflectType() reflect.Type + type Type uint8 + const TypeBool + const TypeBytes + const TypeEnum + const TypeFloat32 + const TypeFloat64 + const TypeInt + const TypeInt16 + const TypeInt32 + const TypeInt64 + const TypeInt8 + const TypeInvalid + const TypeJSON + const TypeOther + const TypeString + const TypeTime + const TypeUUID + const TypeUint + const TypeUint16 + const TypeUint32 + const TypeUint64 + const TypeUint8 + func (t Type) ConstName() string + func (t Type) Float() bool + func (t Type) Integer() bool + func (t Type) Numeric() bool + func (t Type) String() string + func (t Type) Valid() bool + type TypeInfo struct + Ident string + Nillable bool + PkgName string + PkgPath string + RType *RType + Type Type + func (t *TypeInfo) GoType(typ any) + func (t TypeInfo) Clone() *TypeInfo + func (t TypeInfo) Comparable() bool + func (t TypeInfo) ConstName() string + func (t TypeInfo) Numeric() bool + func (t TypeInfo) String() string + func (t TypeInfo) Stringer() bool + func (t TypeInfo) StructString() string + func (t TypeInfo) Valid() bool