Documentation
¶
Index ¶
- func ParseTestCode(o *loadOptionSet)
- type AQ
- func Import(targetPackage string, path string) (*AQ, error)
- func LoadDir(dir string, opts ...LoadOption) (*AQ, error)
- func LoadFile(filename string) (*AQ, error)
- func MustImport(targetPackage string, path string) *AQ
- func MustLoadDir(dir string, opts ...LoadOption) *AQ
- func MustLoadFile(filename string) *AQ
- func New() *AQ
- func (a *AQ) File() *File
- func (a *AQ) Files() Files
- func (a *AQ) Funcs() FuncDecls
- func (a *AQ) Import(targetPackage string, path string) error
- func (a *AQ) Interfaces() InterfaceSpecs
- func (a *AQ) LoadDir(dir string, opts ...LoadOption) error
- func (a *AQ) LoadFile(filename string) error
- func (a *AQ) LoadFromSource(source []byte) error
- func (a *AQ) MustImport(targetPackage string, path string) error
- func (a *AQ) MustLoadDir(dir string, opts ...LoadOption) *AQ
- func (a *AQ) MustLoadFile(filename string) *AQ
- func (a *AQ) MustLoadFromSource(source []byte) *AQ
- func (a *AQ) Package() string
- func (i AQ) Packages() []string
- func (a *AQ) Structs() StructSpecs
- func (a *AQ) Types() TypeSpecs
- type Field
- type Fields
- func (r Fields) Chunk(size int) []Fields
- func (r Fields) Compact() Fields
- func (r Fields) Concat(l Fields) Fields
- func (r Fields) Copy() Fields
- func (r Fields) Count() int
- func (r Fields) Each(f func(i int, v *Field))
- func (r Fields) Every(f func(i int, v *Field) bool) bool
- func (r Fields) Exists() bool
- func (r Fields) Filter(funcs ...func(i int, v *Field) bool) Fields
- func (r Fields) Find(funcs ...func(i int, v *Field) bool) *Field
- func (f Fields) FindByName(name string) *Field
- func (r Fields) FindIndex(funcs ...func(i int, v *Field) bool) int
- func (r Fields) First() *Field
- func (r Fields) ForPage(pageNo int, size int) Fields
- func (r Fields) Get(i int) *Field
- func (r Fields) Has(f func(i int, v *Field) bool) bool
- func (r Fields) IsEmpty() bool
- func (r Fields) IsExporteds() []bool
- func (r Fields) IsNotEmpty() bool
- func (r Fields) Last() *Field
- func (r Fields) Names() []string
- func (r Fields) Reverse() Fields
- func (r Fields) Some(f func(i int, v *Field) bool) bool
- func (r Fields) Tags() []*Tag
- func (r Fields) Take(size int) Fields
- func (r Fields) Types() []*Type
- type File
- type Files
- func (r Files) Chunk(size int) []Files
- func (r Files) Compact() Files
- func (r Files) Concat(l Files) Files
- func (r Files) Copy() Files
- func (r Files) Count() int
- func (r Files) Each(f func(i int, v *File))
- func (r Files) Every(f func(i int, v *File) bool) bool
- func (r Files) Exists() bool
- func (r Files) Filter(funcs ...func(i int, v *File) bool) Files
- func (r Files) Find(funcs ...func(i int, v *File) bool) *File
- func (r Files) FindIndex(funcs ...func(i int, v *File) bool) int
- func (r Files) First() *File
- func (r Files) ForPage(pageNo int, size int) Files
- func (r Files) Get(i int) *File
- func (r Files) Has(f func(i int, v *File) bool) bool
- func (r Files) ImportsList() []ImportSpecs
- func (r Files) IsEmpty() bool
- func (r Files) IsNotEmpty() bool
- func (r Files) Last() *File
- func (r Files) Packages() []string
- func (r Files) Reverse() Files
- func (r Files) Some(f func(i int, v *File) bool) bool
- func (r Files) StructsList() []StructSpecs
- func (r Files) Take(size int) Files
- type FuncDecl
- type FuncDecls
- func (r FuncDecls) Chunk(size int) []FuncDecls
- func (r FuncDecls) Compact() FuncDecls
- func (r FuncDecls) Concat(l FuncDecls) FuncDecls
- func (r FuncDecls) Copy() FuncDecls
- func (r FuncDecls) Count() int
- func (r FuncDecls) Each(f func(i int, v *FuncDecl))
- func (r FuncDecls) Every(f func(i int, v *FuncDecl) bool) bool
- func (r FuncDecls) Exists() bool
- func (r FuncDecls) Filter(funcs ...func(i int, v *FuncDecl) bool) FuncDecls
- func (r FuncDecls) Find(funcs ...func(i int, v *FuncDecl) bool) *FuncDecl
- func (r FuncDecls) FindIndex(funcs ...func(i int, v *FuncDecl) bool) int
- func (r FuncDecls) First() *FuncDecl
- func (r FuncDecls) ForPage(pageNo int, size int) FuncDecls
- func (r FuncDecls) Get(i int) *FuncDecl
- func (r FuncDecls) Has(f func(i int, v *FuncDecl) bool) bool
- func (r FuncDecls) IsEmpty() bool
- func (r FuncDecls) IsNotEmpty() bool
- func (r FuncDecls) Last() *FuncDecl
- func (r FuncDecls) Names() []string
- func (r FuncDecls) ParamsList() []Fields
- func (r FuncDecls) Recvs() []*Field
- func (r FuncDecls) ResultsList() []Fields
- func (r FuncDecls) Reverse() FuncDecls
- func (r FuncDecls) Some(f func(i int, v *FuncDecl) bool) bool
- func (r FuncDecls) Take(size int) FuncDecls
- func (r FuncDecls) Types() []*FuncType
- type FuncType
- type FuncTypes
- func (r FuncTypes) Chunk(size int) []FuncTypes
- func (r FuncTypes) Compact() FuncTypes
- func (r FuncTypes) Concat(l FuncTypes) FuncTypes
- func (r FuncTypes) Copy() FuncTypes
- func (r FuncTypes) Count() int
- func (r FuncTypes) Each(f func(i int, v *FuncType))
- func (r FuncTypes) Every(f func(i int, v *FuncType) bool) bool
- func (r FuncTypes) Exists() bool
- func (r FuncTypes) Filter(funcs ...func(i int, v *FuncType) bool) FuncTypes
- func (r FuncTypes) Find(funcs ...func(i int, v *FuncType) bool) *FuncType
- func (r FuncTypes) FindIndex(funcs ...func(i int, v *FuncType) bool) int
- func (r FuncTypes) First() *FuncType
- func (r FuncTypes) ForPage(pageNo int, size int) FuncTypes
- func (r FuncTypes) Get(i int) *FuncType
- func (r FuncTypes) Has(f func(i int, v *FuncType) bool) bool
- func (r FuncTypes) IsEmpty() bool
- func (r FuncTypes) IsNotEmpty() bool
- func (r FuncTypes) Last() *FuncType
- func (r FuncTypes) ParamsList() []Fields
- func (r FuncTypes) ResultsList() []Fields
- func (r FuncTypes) Reverse() FuncTypes
- func (r FuncTypes) Some(f func(i int, v *FuncType) bool) bool
- func (r FuncTypes) Take(size int) FuncTypes
- func (r FuncTypes) Typs() []*ast.FuncType
- type HasStructFunc
- type ImportSpec
- type ImportSpecs
- func (r ImportSpecs) Chunk(size int) []ImportSpecs
- func (r ImportSpecs) Compact() ImportSpecs
- func (r ImportSpecs) Concat(l ImportSpecs) ImportSpecs
- func (r ImportSpecs) Copy() ImportSpecs
- func (r ImportSpecs) Count() int
- func (r ImportSpecs) Each(f func(i int, v *ImportSpec))
- func (r ImportSpecs) Every(f func(i int, v *ImportSpec) bool) bool
- func (r ImportSpecs) Exists() bool
- func (r ImportSpecs) Filter(funcs ...func(i int, v *ImportSpec) bool) ImportSpecs
- func (r ImportSpecs) Find(funcs ...func(i int, v *ImportSpec) bool) *ImportSpec
- func (r ImportSpecs) FindIndex(funcs ...func(i int, v *ImportSpec) bool) int
- func (r ImportSpecs) First() *ImportSpec
- func (r ImportSpecs) ForPage(pageNo int, size int) ImportSpecs
- func (r ImportSpecs) Get(i int) *ImportSpec
- func (r ImportSpecs) Has(f func(i int, v *ImportSpec) bool) bool
- func (r ImportSpecs) IsEmpty() bool
- func (r ImportSpecs) IsNotEmpty() bool
- func (r ImportSpecs) Last() *ImportSpec
- func (r ImportSpecs) Names() []string
- func (r ImportSpecs) Paths() []string
- func (r ImportSpecs) Reverse() ImportSpecs
- func (r ImportSpecs) Some(f func(i int, v *ImportSpec) bool) bool
- func (r ImportSpecs) Take(size int) ImportSpecs
- type InterfaceSpec
- type InterfaceSpecs
- func (r InterfaceSpecs) Chunk(size int) []InterfaceSpecs
- func (r InterfaceSpecs) Compact() InterfaceSpecs
- func (r InterfaceSpecs) Concat(l InterfaceSpecs) InterfaceSpecs
- func (r InterfaceSpecs) Copy() InterfaceSpecs
- func (r InterfaceSpecs) Count() int
- func (r InterfaceSpecs) Each(f func(i int, v *InterfaceSpec))
- func (r InterfaceSpecs) Every(f func(i int, v *InterfaceSpec) bool) bool
- func (r InterfaceSpecs) Exists() bool
- func (r InterfaceSpecs) Filter(funcs ...func(i int, v *InterfaceSpec) bool) InterfaceSpecs
- func (r InterfaceSpecs) Find(funcs ...func(i int, v *InterfaceSpec) bool) *InterfaceSpec
- func (r InterfaceSpecs) FindIndex(funcs ...func(i int, v *InterfaceSpec) bool) int
- func (r InterfaceSpecs) First() *InterfaceSpec
- func (r InterfaceSpecs) ForPage(pageNo int, size int) InterfaceSpecs
- func (r InterfaceSpecs) Get(i int) *InterfaceSpec
- func (r InterfaceSpecs) Has(f func(i int, v *InterfaceSpec) bool) bool
- func (r InterfaceSpecs) IsEmpty() bool
- func (r InterfaceSpecs) IsNotEmpty() bool
- func (r InterfaceSpecs) Last() *InterfaceSpec
- func (r InterfaceSpecs) Names() []string
- func (r InterfaceSpecs) Reverse() InterfaceSpecs
- func (r InterfaceSpecs) Some(f func(i int, v *InterfaceSpec) bool) bool
- func (r InterfaceSpecs) Take(size int) InterfaceSpecs
- type InterfaceType
- type InterfaceTypes
- func (r InterfaceTypes) Chunk(size int) []InterfaceTypes
- func (r InterfaceTypes) Compact() InterfaceTypes
- func (r InterfaceTypes) Concat(l InterfaceTypes) InterfaceTypes
- func (r InterfaceTypes) Copy() InterfaceTypes
- func (r InterfaceTypes) Count() int
- func (r InterfaceTypes) Each(f func(i int, v *InterfaceType))
- func (r InterfaceTypes) Every(f func(i int, v *InterfaceType) bool) bool
- func (r InterfaceTypes) Exists() bool
- func (r InterfaceTypes) Filter(funcs ...func(i int, v *InterfaceType) bool) InterfaceTypes
- func (r InterfaceTypes) Find(funcs ...func(i int, v *InterfaceType) bool) *InterfaceType
- func (r InterfaceTypes) FindIndex(funcs ...func(i int, v *InterfaceType) bool) int
- func (r InterfaceTypes) First() *InterfaceType
- func (r InterfaceTypes) ForPage(pageNo int, size int) InterfaceTypes
- func (r InterfaceTypes) Get(i int) *InterfaceType
- func (r InterfaceTypes) Has(f func(i int, v *InterfaceType) bool) bool
- func (r InterfaceTypes) IsEmpty() bool
- func (r InterfaceTypes) IsNotEmpty() bool
- func (r InterfaceTypes) Last() *InterfaceType
- func (r InterfaceTypes) Reverse() InterfaceTypes
- func (r InterfaceTypes) Some(f func(i int, v *InterfaceType) bool) bool
- func (r InterfaceTypes) Take(size int) InterfaceTypes
- type LoadOption
- type StructSpec
- type StructSpecs
- func (r StructSpecs) Chunk(size int) []StructSpecs
- func (r StructSpecs) Compact() StructSpecs
- func (r StructSpecs) Concat(l StructSpecs) StructSpecs
- func (r StructSpecs) Copy() StructSpecs
- func (r StructSpecs) Count() int
- func (r StructSpecs) Each(f func(i int, v *StructSpec))
- func (r StructSpecs) Every(f func(i int, v *StructSpec) bool) bool
- func (r StructSpecs) Exists() bool
- func (r StructSpecs) Filter(funcs ...func(i int, v *StructSpec) bool) StructSpecs
- func (r StructSpecs) Find(funcs ...func(i int, v *StructSpec) bool) *StructSpec
- func (r StructSpecs) FindIndex(funcs ...func(i int, v *StructSpec) bool) int
- func (r StructSpecs) First() *StructSpec
- func (r StructSpecs) ForPage(pageNo int, size int) StructSpecs
- func (r StructSpecs) Get(i int) *StructSpec
- func (r StructSpecs) Has(f func(i int, v *StructSpec) bool) bool
- func (r StructSpecs) IsEmpty() bool
- func (r StructSpecs) IsNotEmpty() bool
- func (r StructSpecs) Last() *StructSpec
- func (r StructSpecs) Reverse() StructSpecs
- func (r StructSpecs) Some(f func(i int, v *StructSpec) bool) bool
- func (r StructSpecs) Take(size int) StructSpecs
- type Tag
- type Type
- type TypeSpec
- type TypeSpecs
- func (r TypeSpecs) Chunk(size int) []TypeSpecs
- func (r TypeSpecs) Compact() TypeSpecs
- func (r TypeSpecs) Concat(l TypeSpecs) TypeSpecs
- func (r TypeSpecs) Copy() TypeSpecs
- func (r TypeSpecs) Count() int
- func (r TypeSpecs) Each(f func(i int, v *TypeSpec))
- func (r TypeSpecs) Every(f func(i int, v *TypeSpec) bool) bool
- func (r TypeSpecs) Exists() bool
- func (r TypeSpecs) Filter(funcs ...func(i int, v *TypeSpec) bool) TypeSpecs
- func (r TypeSpecs) Find(funcs ...func(i int, v *TypeSpec) bool) *TypeSpec
- func (r TypeSpecs) FindIndex(funcs ...func(i int, v *TypeSpec) bool) int
- func (r TypeSpecs) First() *TypeSpec
- func (r TypeSpecs) ForPage(pageNo int, size int) TypeSpecs
- func (r TypeSpecs) Get(i int) *TypeSpec
- func (r TypeSpecs) Has(f func(i int, v *TypeSpec) bool) bool
- func (t TypeSpecs) Interfaces() InterfaceSpecs
- func (r TypeSpecs) IsEmpty() bool
- func (r TypeSpecs) IsNotEmpty() bool
- func (r TypeSpecs) Last() *TypeSpec
- func (r TypeSpecs) Reverse() TypeSpecs
- func (r TypeSpecs) Some(f func(i int, v *TypeSpec) bool) bool
- func (t TypeSpecs) Structs() StructSpecs
- func (r TypeSpecs) Take(size int) TypeSpecs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseTestCode ¶
func ParseTestCode(o *loadOptionSet)
Types ¶
type AQ ¶
type AQ struct {
// contains filtered or unexported fields
}
func MustImport ¶
func MustLoadDir ¶
func MustLoadDir(dir string, opts ...LoadOption) *AQ
func MustLoadFile ¶
func (*AQ) Interfaces ¶
func (a *AQ) Interfaces() InterfaceSpecs
func (*AQ) LoadFromSource ¶
func (*AQ) MustLoadDir ¶
func (a *AQ) MustLoadDir(dir string, opts ...LoadOption) *AQ
func (*AQ) MustLoadFile ¶
func (*AQ) MustLoadFromSource ¶
func (*AQ) Structs ¶
func (a *AQ) Structs() StructSpecs
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func (*Field) IsExported ¶
type Fields ¶
type Fields []*Field
func (Fields) FindByName ¶
func (Fields) IsExporteds ¶
func (Fields) IsNotEmpty ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (*File) Imports ¶
func (f *File) Imports() ImportSpecs
func (*File) Structs ¶
func (f *File) Structs() StructSpecs
type Files ¶
type Files []*File
func (Files) ImportsList ¶
func (r Files) ImportsList() []ImportSpecs
func (Files) IsNotEmpty ¶
func (Files) StructsList ¶
func (r Files) StructsList() []StructSpecs
type FuncDecl ¶
type FuncDecl struct {
// contains filtered or unexported fields
}
func NewFuncDecl ¶
type FuncDecls ¶
type FuncDecls []*FuncDecl
func (FuncDecls) IsNotEmpty ¶
func (FuncDecls) ParamsList ¶
func (FuncDecls) ResultsList ¶
type FuncType ¶
type FuncType struct {
// contains filtered or unexported fields
}
func NewFuncType ¶
type FuncTypes ¶
type FuncTypes []*FuncType
func (FuncTypes) IsNotEmpty ¶
func (FuncTypes) ParamsList ¶
func (FuncTypes) ResultsList ¶
type HasStructFunc ¶
type HasStructFunc func(i int, s *StructSpec) bool
func StructNameIs ¶
func StructNameIs(name string) HasStructFunc
type ImportSpec ¶
type ImportSpec struct {
// contains filtered or unexported fields
}
func NewImportSpec ¶
func NewImportSpec( importSpec *ast.ImportSpec, ) *ImportSpec
func (*ImportSpec) Exists ¶
func (i *ImportSpec) Exists() bool
func (*ImportSpec) Name ¶
func (i *ImportSpec) Name() string
func (*ImportSpec) Path ¶
func (i *ImportSpec) Path() string
type ImportSpecs ¶
type ImportSpecs []*ImportSpec
func (ImportSpecs) Chunk ¶
func (r ImportSpecs) Chunk(size int) []ImportSpecs
func (ImportSpecs) Compact ¶
func (r ImportSpecs) Compact() ImportSpecs
func (ImportSpecs) Concat ¶
func (r ImportSpecs) Concat(l ImportSpecs) ImportSpecs
func (ImportSpecs) Copy ¶
func (r ImportSpecs) Copy() ImportSpecs
func (ImportSpecs) Count ¶
func (r ImportSpecs) Count() int
func (ImportSpecs) Each ¶
func (r ImportSpecs) Each(f func(i int, v *ImportSpec))
func (ImportSpecs) Every ¶
func (r ImportSpecs) Every(f func(i int, v *ImportSpec) bool) bool
func (ImportSpecs) Exists ¶
func (r ImportSpecs) Exists() bool
func (ImportSpecs) Filter ¶
func (r ImportSpecs) Filter(funcs ...func(i int, v *ImportSpec) bool) ImportSpecs
func (ImportSpecs) Find ¶
func (r ImportSpecs) Find(funcs ...func(i int, v *ImportSpec) bool) *ImportSpec
func (ImportSpecs) FindIndex ¶
func (r ImportSpecs) FindIndex(funcs ...func(i int, v *ImportSpec) bool) int
func (ImportSpecs) First ¶
func (r ImportSpecs) First() *ImportSpec
func (ImportSpecs) ForPage ¶
func (r ImportSpecs) ForPage(pageNo int, size int) ImportSpecs
func (ImportSpecs) Get ¶
func (r ImportSpecs) Get(i int) *ImportSpec
func (ImportSpecs) Has ¶
func (r ImportSpecs) Has(f func(i int, v *ImportSpec) bool) bool
func (ImportSpecs) IsEmpty ¶
func (r ImportSpecs) IsEmpty() bool
func (ImportSpecs) IsNotEmpty ¶
func (r ImportSpecs) IsNotEmpty() bool
func (ImportSpecs) Last ¶
func (r ImportSpecs) Last() *ImportSpec
func (ImportSpecs) Names ¶
func (r ImportSpecs) Names() []string
func (ImportSpecs) Paths ¶
func (r ImportSpecs) Paths() []string
func (ImportSpecs) Reverse ¶
func (r ImportSpecs) Reverse() ImportSpecs
func (ImportSpecs) Some ¶
func (r ImportSpecs) Some(f func(i int, v *ImportSpec) bool) bool
func (ImportSpecs) Take ¶
func (r ImportSpecs) Take(size int) ImportSpecs
type InterfaceSpec ¶
type InterfaceSpec struct {
// contains filtered or unexported fields
}
func NewInterfaceSpec ¶
func NewInterfaceSpec( aq *AQ, file *File, spec *ast.TypeSpec, typ *ast.InterfaceType, ) *InterfaceSpec
func (*InterfaceSpec) Methods ¶
func (i *InterfaceSpec) Methods() Fields
func (*InterfaceSpec) Name ¶
func (i *InterfaceSpec) Name() string
type InterfaceSpecs ¶
type InterfaceSpecs []*InterfaceSpec
func (InterfaceSpecs) Chunk ¶
func (r InterfaceSpecs) Chunk(size int) []InterfaceSpecs
func (InterfaceSpecs) Compact ¶
func (r InterfaceSpecs) Compact() InterfaceSpecs
func (InterfaceSpecs) Concat ¶
func (r InterfaceSpecs) Concat(l InterfaceSpecs) InterfaceSpecs
func (InterfaceSpecs) Copy ¶
func (r InterfaceSpecs) Copy() InterfaceSpecs
func (InterfaceSpecs) Count ¶
func (r InterfaceSpecs) Count() int
func (InterfaceSpecs) Each ¶
func (r InterfaceSpecs) Each(f func(i int, v *InterfaceSpec))
func (InterfaceSpecs) Every ¶
func (r InterfaceSpecs) Every(f func(i int, v *InterfaceSpec) bool) bool
func (InterfaceSpecs) Exists ¶
func (r InterfaceSpecs) Exists() bool
func (InterfaceSpecs) Filter ¶
func (r InterfaceSpecs) Filter(funcs ...func(i int, v *InterfaceSpec) bool) InterfaceSpecs
func (InterfaceSpecs) Find ¶
func (r InterfaceSpecs) Find(funcs ...func(i int, v *InterfaceSpec) bool) *InterfaceSpec
func (InterfaceSpecs) FindIndex ¶
func (r InterfaceSpecs) FindIndex(funcs ...func(i int, v *InterfaceSpec) bool) int
func (InterfaceSpecs) First ¶
func (r InterfaceSpecs) First() *InterfaceSpec
func (InterfaceSpecs) ForPage ¶
func (r InterfaceSpecs) ForPage(pageNo int, size int) InterfaceSpecs
func (InterfaceSpecs) Get ¶
func (r InterfaceSpecs) Get(i int) *InterfaceSpec
func (InterfaceSpecs) Has ¶
func (r InterfaceSpecs) Has(f func(i int, v *InterfaceSpec) bool) bool
func (InterfaceSpecs) IsEmpty ¶
func (r InterfaceSpecs) IsEmpty() bool
func (InterfaceSpecs) IsNotEmpty ¶
func (r InterfaceSpecs) IsNotEmpty() bool
func (InterfaceSpecs) Last ¶
func (r InterfaceSpecs) Last() *InterfaceSpec
func (InterfaceSpecs) Names ¶
func (r InterfaceSpecs) Names() []string
func (InterfaceSpecs) Reverse ¶
func (r InterfaceSpecs) Reverse() InterfaceSpecs
func (InterfaceSpecs) Some ¶
func (r InterfaceSpecs) Some(f func(i int, v *InterfaceSpec) bool) bool
func (InterfaceSpecs) Take ¶
func (r InterfaceSpecs) Take(size int) InterfaceSpecs
type InterfaceType ¶
type InterfaceType struct {
// contains filtered or unexported fields
}
func NewInterfaceType ¶
func NewInterfaceType( i *AQ, typ *ast.InterfaceType, ) *InterfaceType
func (*InterfaceType) Name ¶
func (i *InterfaceType) Name() string
type InterfaceTypes ¶
type InterfaceTypes []*InterfaceType
func (InterfaceTypes) Chunk ¶
func (r InterfaceTypes) Chunk(size int) []InterfaceTypes
func (InterfaceTypes) Compact ¶
func (r InterfaceTypes) Compact() InterfaceTypes
func (InterfaceTypes) Concat ¶
func (r InterfaceTypes) Concat(l InterfaceTypes) InterfaceTypes
func (InterfaceTypes) Copy ¶
func (r InterfaceTypes) Copy() InterfaceTypes
func (InterfaceTypes) Count ¶
func (r InterfaceTypes) Count() int
func (InterfaceTypes) Each ¶
func (r InterfaceTypes) Each(f func(i int, v *InterfaceType))
func (InterfaceTypes) Every ¶
func (r InterfaceTypes) Every(f func(i int, v *InterfaceType) bool) bool
func (InterfaceTypes) Exists ¶
func (r InterfaceTypes) Exists() bool
func (InterfaceTypes) Filter ¶
func (r InterfaceTypes) Filter(funcs ...func(i int, v *InterfaceType) bool) InterfaceTypes
func (InterfaceTypes) Find ¶
func (r InterfaceTypes) Find(funcs ...func(i int, v *InterfaceType) bool) *InterfaceType
func (InterfaceTypes) FindIndex ¶
func (r InterfaceTypes) FindIndex(funcs ...func(i int, v *InterfaceType) bool) int
func (InterfaceTypes) First ¶
func (r InterfaceTypes) First() *InterfaceType
func (InterfaceTypes) ForPage ¶
func (r InterfaceTypes) ForPage(pageNo int, size int) InterfaceTypes
func (InterfaceTypes) Get ¶
func (r InterfaceTypes) Get(i int) *InterfaceType
func (InterfaceTypes) Has ¶
func (r InterfaceTypes) Has(f func(i int, v *InterfaceType) bool) bool
func (InterfaceTypes) IsEmpty ¶
func (r InterfaceTypes) IsEmpty() bool
func (InterfaceTypes) IsNotEmpty ¶
func (r InterfaceTypes) IsNotEmpty() bool
func (InterfaceTypes) Last ¶
func (r InterfaceTypes) Last() *InterfaceType
func (InterfaceTypes) Reverse ¶
func (r InterfaceTypes) Reverse() InterfaceTypes
func (InterfaceTypes) Some ¶
func (r InterfaceTypes) Some(f func(i int, v *InterfaceType) bool) bool
func (InterfaceTypes) Take ¶
func (r InterfaceTypes) Take(size int) InterfaceTypes
type LoadOption ¶
type LoadOption func(o *loadOptionSet)
func IngoreSuffix ¶
func IngoreSuffix(suffix ...string) LoadOption
type StructSpec ¶
type StructSpec struct {
// contains filtered or unexported fields
}
func NewStructSpec ¶
func NewStructSpec( instance *AQ, file *File, typeSpec *ast.TypeSpec, structType *ast.StructType, ) *StructSpec
func (*StructSpec) Exists ¶
func (s *StructSpec) Exists() bool
func (*StructSpec) Fields ¶
func (s *StructSpec) Fields() Fields
func (StructSpec) File ¶
func (s StructSpec) File() *File
func (*StructSpec) Name ¶
func (s *StructSpec) Name() string
type StructSpecs ¶
type StructSpecs []*StructSpec
func (StructSpecs) Chunk ¶
func (r StructSpecs) Chunk(size int) []StructSpecs
func (StructSpecs) Compact ¶
func (r StructSpecs) Compact() StructSpecs
func (StructSpecs) Concat ¶
func (r StructSpecs) Concat(l StructSpecs) StructSpecs
func (StructSpecs) Copy ¶
func (r StructSpecs) Copy() StructSpecs
func (StructSpecs) Count ¶
func (r StructSpecs) Count() int
func (StructSpecs) Each ¶
func (r StructSpecs) Each(f func(i int, v *StructSpec))
func (StructSpecs) Every ¶
func (r StructSpecs) Every(f func(i int, v *StructSpec) bool) bool
func (StructSpecs) Exists ¶
func (r StructSpecs) Exists() bool
func (StructSpecs) Filter ¶
func (r StructSpecs) Filter(funcs ...func(i int, v *StructSpec) bool) StructSpecs
func (StructSpecs) Find ¶
func (r StructSpecs) Find(funcs ...func(i int, v *StructSpec) bool) *StructSpec
func (StructSpecs) FindIndex ¶
func (r StructSpecs) FindIndex(funcs ...func(i int, v *StructSpec) bool) int
func (StructSpecs) First ¶
func (r StructSpecs) First() *StructSpec
func (StructSpecs) ForPage ¶
func (r StructSpecs) ForPage(pageNo int, size int) StructSpecs
func (StructSpecs) Get ¶
func (r StructSpecs) Get(i int) *StructSpec
func (StructSpecs) Has ¶
func (r StructSpecs) Has(f func(i int, v *StructSpec) bool) bool
func (StructSpecs) IsEmpty ¶
func (r StructSpecs) IsEmpty() bool
func (StructSpecs) IsNotEmpty ¶
func (r StructSpecs) IsNotEmpty() bool
func (StructSpecs) Last ¶
func (r StructSpecs) Last() *StructSpec
func (StructSpecs) Reverse ¶
func (r StructSpecs) Reverse() StructSpecs
func (StructSpecs) Some ¶
func (r StructSpecs) Some(f func(i int, v *StructSpec) bool) bool
func (StructSpecs) Take ¶
func (r StructSpecs) Take(size int) StructSpecs
type TypeSpec ¶
type TypeSpec struct {
// contains filtered or unexported fields
}
func (*TypeSpec) Interface ¶
func (t *TypeSpec) Interface() *InterfaceSpec
func (*TypeSpec) Struct ¶
func (t *TypeSpec) Struct() *StructSpec
type TypeSpecs ¶
type TypeSpecs []*TypeSpec
func (TypeSpecs) Interfaces ¶
func (t TypeSpecs) Interfaces() InterfaceSpecs
func (TypeSpecs) IsNotEmpty ¶
func (TypeSpecs) Structs ¶
func (t TypeSpecs) Structs() StructSpecs
Source Files
¶
- aq.go
- ast.go
- creator.go
- field.go
- field_gen.go
- file.go
- file_gen.go
- func_decl.go
- func_decl_gen.go
- func_type.go
- func_type_gen.go
- import_spec.go
- import_spec_gen.go
- interface_spec.go
- interface_spec_gen.go
- interface_type.go
- interface_type_gen.go
- load_option_set.go
- struct_spec.go
- struct_spec_gen.go
- tag.go
- type_spec.go
- type_spec_gen.go
- typedef.go
Click to show internal directories.
Click to hide internal directories.