aq

package
v0.0.0-...-5814e03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 Import

func Import(targetPackage string, path string) (*AQ, error)

func LoadDir

func LoadDir(dir string, opts ...LoadOption) (*AQ, error)

func LoadFile

func LoadFile(filename string) (*AQ, error)

func MustImport

func MustImport(targetPackage string, path string) *AQ

func MustLoadDir

func MustLoadDir(dir string, opts ...LoadOption) *AQ

func MustLoadFile

func MustLoadFile(filename string) *AQ

func New

func New() *AQ

func (*AQ) File

func (a *AQ) File() *File

func (*AQ) Files

func (a *AQ) Files() Files

func (*AQ) Funcs

func (a *AQ) Funcs() FuncDecls

func (*AQ) Import

func (a *AQ) Import(targetPackage string, path string) error

func (*AQ) Interfaces

func (a *AQ) Interfaces() InterfaceSpecs

func (*AQ) LoadDir

func (a *AQ) LoadDir(dir string, opts ...LoadOption) error

func (*AQ) LoadFile

func (a *AQ) LoadFile(filename string) error

func (*AQ) LoadFromSource

func (a *AQ) LoadFromSource(source []byte) error

func (*AQ) MustImport

func (a *AQ) MustImport(targetPackage string, path string) error

func (*AQ) MustLoadDir

func (a *AQ) MustLoadDir(dir string, opts ...LoadOption) *AQ

func (*AQ) MustLoadFile

func (a *AQ) MustLoadFile(filename string) *AQ

func (*AQ) MustLoadFromSource

func (a *AQ) MustLoadFromSource(source []byte) *AQ

func (*AQ) Package

func (a *AQ) Package() string

func (AQ) Packages

func (i AQ) Packages() []string

func (*AQ) Structs

func (a *AQ) Structs() StructSpecs

func (*AQ) Types

func (a *AQ) Types() TypeSpecs

type Field

type Field struct {
	// contains filtered or unexported fields
}

func NewField

func NewField(
	field *ast.Field,
) *Field

func (*Field) Exists

func (f *Field) Exists() bool

func (*Field) IsExported

func (f *Field) IsExported() bool

func (*Field) Name

func (f *Field) Name() string

func (*Field) Tag

func (f *Field) Tag() *Tag

func (*Field) Type

func (f *Field) Type() *Type

type Fields

type Fields []*Field

func NewFields

func NewFields(f *ast.FieldList) Fields

func (Fields) Chunk

func (r Fields) Chunk(size int) []Fields

func (Fields) Compact

func (r Fields) Compact() Fields

func (Fields) Concat

func (r Fields) Concat(l Fields) Fields

func (Fields) Copy

func (r Fields) Copy() Fields

func (Fields) Count

func (r Fields) Count() int

func (Fields) Each

func (r Fields) Each(f func(i int, v *Field))

func (Fields) Every

func (r Fields) Every(f func(i int, v *Field) bool) bool

func (Fields) Exists

func (r Fields) Exists() bool

func (Fields) Filter

func (r Fields) Filter(funcs ...func(i int, v *Field) bool) Fields

func (Fields) Find

func (r Fields) Find(funcs ...func(i int, v *Field) bool) *Field

func (Fields) FindByName

func (f Fields) FindByName(name string) *Field

func (Fields) FindIndex

func (r Fields) FindIndex(funcs ...func(i int, v *Field) bool) int

func (Fields) First

func (r Fields) First() *Field

func (Fields) ForPage

func (r Fields) ForPage(pageNo int, size int) Fields

func (Fields) Get

func (r Fields) Get(i int) *Field

func (Fields) Has

func (r Fields) Has(f func(i int, v *Field) bool) bool

func (Fields) IsEmpty

func (r Fields) IsEmpty() bool

func (Fields) IsExporteds

func (r Fields) IsExporteds() []bool

func (Fields) IsNotEmpty

func (r Fields) IsNotEmpty() bool

func (Fields) Last

func (r Fields) Last() *Field

func (Fields) Names

func (r Fields) Names() []string

func (Fields) Reverse

func (r Fields) Reverse() Fields

func (Fields) Some

func (r Fields) Some(f func(i int, v *Field) bool) bool

func (Fields) Tags

func (r Fields) Tags() []*Tag

func (Fields) Take

func (r Fields) Take(size int) Fields

func (Fields) Types

func (r Fields) Types() []*Type

type File

type File struct {
	// contains filtered or unexported fields
}

func NewFile

func NewFile(
	aq *AQ,
	file *ast.File,
) *File

func (*File) Exists

func (f *File) Exists() bool

func (*File) Imports

func (f *File) Imports() ImportSpecs

func (*File) Package

func (f *File) Package() string

func (*File) Structs

func (f *File) Structs() StructSpecs

func (*File) Types

func (f *File) Types() TypeSpecs

type Files

type Files []*File

func (Files) Chunk

func (r Files) Chunk(size int) []Files

func (Files) Compact

func (r Files) Compact() Files

func (Files) Concat

func (r Files) Concat(l Files) Files

func (Files) Copy

func (r Files) Copy() Files

func (Files) Count

func (r Files) Count() int

func (Files) Each

func (r Files) Each(f func(i int, v *File))

func (Files) Every

func (r Files) Every(f func(i int, v *File) bool) bool

func (Files) Exists

func (r Files) Exists() bool

func (Files) Filter

func (r Files) Filter(funcs ...func(i int, v *File) bool) Files

func (Files) Find

func (r Files) Find(funcs ...func(i int, v *File) bool) *File

func (Files) FindIndex

func (r Files) FindIndex(funcs ...func(i int, v *File) bool) int

func (Files) First

func (r Files) First() *File

func (Files) ForPage

func (r Files) ForPage(pageNo int, size int) Files

func (Files) Get

func (r Files) Get(i int) *File

func (Files) Has

func (r Files) Has(f func(i int, v *File) bool) bool

func (Files) ImportsList

func (r Files) ImportsList() []ImportSpecs

func (Files) IsEmpty

func (r Files) IsEmpty() bool

func (Files) IsNotEmpty

func (r Files) IsNotEmpty() bool

func (Files) Last

func (r Files) Last() *File

func (Files) Packages

func (r Files) Packages() []string

func (Files) Reverse

func (r Files) Reverse() Files

func (Files) Some

func (r Files) Some(f func(i int, v *File) bool) bool

func (Files) StructsList

func (r Files) StructsList() []StructSpecs

func (Files) Take

func (r Files) Take(size int) Files

type FuncDecl

type FuncDecl struct {
	// contains filtered or unexported fields
}

func NewFuncDecl

func NewFuncDecl(
	decl *ast.FuncDecl,
) *FuncDecl

func (*FuncDecl) BodyCode

func (f *FuncDecl) BodyCode() string

func (*FuncDecl) Exists

func (f *FuncDecl) Exists() bool

func (*FuncDecl) Name

func (f *FuncDecl) Name() string

func (*FuncDecl) Params

func (f *FuncDecl) Params() Fields

func (*FuncDecl) Recv

func (f *FuncDecl) Recv() *Field

func (*FuncDecl) Results

func (f *FuncDecl) Results() Fields

func (*FuncDecl) Type

func (f *FuncDecl) Type() *FuncType

type FuncDecls

type FuncDecls []*FuncDecl

func (FuncDecls) Chunk

func (r FuncDecls) Chunk(size int) []FuncDecls

func (FuncDecls) Compact

func (r FuncDecls) Compact() FuncDecls

func (FuncDecls) Concat

func (r FuncDecls) Concat(l FuncDecls) FuncDecls

func (FuncDecls) Copy

func (r FuncDecls) Copy() FuncDecls

func (FuncDecls) Count

func (r FuncDecls) Count() int

func (FuncDecls) Each

func (r FuncDecls) Each(f func(i int, v *FuncDecl))

func (FuncDecls) Every

func (r FuncDecls) Every(f func(i int, v *FuncDecl) bool) bool

func (FuncDecls) Exists

func (r FuncDecls) Exists() bool

func (FuncDecls) Filter

func (r FuncDecls) Filter(funcs ...func(i int, v *FuncDecl) bool) FuncDecls

func (FuncDecls) Find

func (r FuncDecls) Find(funcs ...func(i int, v *FuncDecl) bool) *FuncDecl

func (FuncDecls) FindIndex

func (r FuncDecls) FindIndex(funcs ...func(i int, v *FuncDecl) bool) int

func (FuncDecls) First

func (r FuncDecls) First() *FuncDecl

func (FuncDecls) ForPage

func (r FuncDecls) ForPage(pageNo int, size int) FuncDecls

func (FuncDecls) Get

func (r FuncDecls) Get(i int) *FuncDecl

func (FuncDecls) Has

func (r FuncDecls) Has(f func(i int, v *FuncDecl) bool) bool

func (FuncDecls) IsEmpty

func (r FuncDecls) IsEmpty() bool

func (FuncDecls) IsNotEmpty

func (r FuncDecls) IsNotEmpty() bool

func (FuncDecls) Last

func (r FuncDecls) Last() *FuncDecl

func (FuncDecls) Names

func (r FuncDecls) Names() []string

func (FuncDecls) ParamsList

func (r FuncDecls) ParamsList() []Fields

func (FuncDecls) Recvs

func (r FuncDecls) Recvs() []*Field

func (FuncDecls) ResultsList

func (r FuncDecls) ResultsList() []Fields

func (FuncDecls) Reverse

func (r FuncDecls) Reverse() FuncDecls

func (FuncDecls) Some

func (r FuncDecls) Some(f func(i int, v *FuncDecl) bool) bool

func (FuncDecls) Take

func (r FuncDecls) Take(size int) FuncDecls

func (FuncDecls) Types

func (r FuncDecls) Types() []*FuncType

type FuncType

type FuncType struct {
	// contains filtered or unexported fields
}

func NewFuncType

func NewFuncType(
	typ *ast.FuncType,
) *FuncType

func (*FuncType) Params

func (t *FuncType) Params() Fields

func (*FuncType) Results

func (t *FuncType) Results() Fields

type FuncTypes

type FuncTypes []*FuncType

func (FuncTypes) Chunk

func (r FuncTypes) Chunk(size int) []FuncTypes

func (FuncTypes) Compact

func (r FuncTypes) Compact() FuncTypes

func (FuncTypes) Concat

func (r FuncTypes) Concat(l FuncTypes) FuncTypes

func (FuncTypes) Copy

func (r FuncTypes) Copy() FuncTypes

func (FuncTypes) Count

func (r FuncTypes) Count() int

func (FuncTypes) Each

func (r FuncTypes) Each(f func(i int, v *FuncType))

func (FuncTypes) Every

func (r FuncTypes) Every(f func(i int, v *FuncType) bool) bool

func (FuncTypes) Exists

func (r FuncTypes) Exists() bool

func (FuncTypes) Filter

func (r FuncTypes) Filter(funcs ...func(i int, v *FuncType) bool) FuncTypes

func (FuncTypes) Find

func (r FuncTypes) Find(funcs ...func(i int, v *FuncType) bool) *FuncType

func (FuncTypes) FindIndex

func (r FuncTypes) FindIndex(funcs ...func(i int, v *FuncType) bool) int

func (FuncTypes) First

func (r FuncTypes) First() *FuncType

func (FuncTypes) ForPage

func (r FuncTypes) ForPage(pageNo int, size int) FuncTypes

func (FuncTypes) Get

func (r FuncTypes) Get(i int) *FuncType

func (FuncTypes) Has

func (r FuncTypes) Has(f func(i int, v *FuncType) bool) bool

func (FuncTypes) IsEmpty

func (r FuncTypes) IsEmpty() bool

func (FuncTypes) IsNotEmpty

func (r FuncTypes) IsNotEmpty() bool

func (FuncTypes) Last

func (r FuncTypes) Last() *FuncType

func (FuncTypes) ParamsList

func (r FuncTypes) ParamsList() []Fields

func (FuncTypes) ResultsList

func (r FuncTypes) ResultsList() []Fields

func (FuncTypes) Reverse

func (r FuncTypes) Reverse() FuncTypes

func (FuncTypes) Some

func (r FuncTypes) Some(f func(i int, v *FuncType) bool) bool

func (FuncTypes) Take

func (r FuncTypes) Take(size int) FuncTypes

func (FuncTypes) Typs

func (r FuncTypes) Typs() []*ast.FuncType

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 (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 (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 Tag

type Tag struct {
	// contains filtered or unexported fields
}

func (*Tag) Body

func (t *Tag) Body() reflect.StructTag

func (*Tag) Exists

func (t *Tag) Exists() bool

type Type

type Type struct {
	// contains filtered or unexported fields
}

func (*Type) GoCode

func (t *Type) GoCode() string

func (*Type) IsPtr

func (t *Type) IsPtr() bool

func (*Type) Name

func (t *Type) Name() string

func (*Type) UnwrapPtr

func (t *Type) UnwrapPtr() *Type

type TypeSpec

type TypeSpec struct {
	// contains filtered or unexported fields
}

func NewTypeSpec

func NewTypeSpec(
	aq *AQ,
	file *File,
	spec *ast.TypeSpec,
) *TypeSpec

func (*TypeSpec) Interface

func (t *TypeSpec) Interface() *InterfaceSpec

func (*TypeSpec) Struct

func (t *TypeSpec) Struct() *StructSpec

type TypeSpecs

type TypeSpecs []*TypeSpec

func (TypeSpecs) Chunk

func (r TypeSpecs) Chunk(size int) []TypeSpecs

func (TypeSpecs) Compact

func (r TypeSpecs) Compact() TypeSpecs

func (TypeSpecs) Concat

func (r TypeSpecs) Concat(l TypeSpecs) TypeSpecs

func (TypeSpecs) Copy

func (r TypeSpecs) Copy() TypeSpecs

func (TypeSpecs) Count

func (r TypeSpecs) Count() int

func (TypeSpecs) Each

func (r TypeSpecs) Each(f func(i int, v *TypeSpec))

func (TypeSpecs) Every

func (r TypeSpecs) Every(f func(i int, v *TypeSpec) bool) bool

func (TypeSpecs) Exists

func (r TypeSpecs) Exists() bool

func (TypeSpecs) Filter

func (r TypeSpecs) Filter(funcs ...func(i int, v *TypeSpec) bool) TypeSpecs

func (TypeSpecs) Find

func (r TypeSpecs) Find(funcs ...func(i int, v *TypeSpec) bool) *TypeSpec

func (TypeSpecs) FindIndex

func (r TypeSpecs) FindIndex(funcs ...func(i int, v *TypeSpec) bool) int

func (TypeSpecs) First

func (r TypeSpecs) First() *TypeSpec

func (TypeSpecs) ForPage

func (r TypeSpecs) ForPage(pageNo int, size int) TypeSpecs

func (TypeSpecs) Get

func (r TypeSpecs) Get(i int) *TypeSpec

func (TypeSpecs) Has

func (r TypeSpecs) Has(f func(i int, v *TypeSpec) bool) bool

func (TypeSpecs) Interfaces

func (t TypeSpecs) Interfaces() InterfaceSpecs

func (TypeSpecs) IsEmpty

func (r TypeSpecs) IsEmpty() bool

func (TypeSpecs) IsNotEmpty

func (r TypeSpecs) IsNotEmpty() bool

func (TypeSpecs) Last

func (r TypeSpecs) Last() *TypeSpec

func (TypeSpecs) Reverse

func (r TypeSpecs) Reverse() TypeSpecs

func (TypeSpecs) Some

func (r TypeSpecs) Some(f func(i int, v *TypeSpec) bool) bool

func (TypeSpecs) Structs

func (t TypeSpecs) Structs() StructSpecs

func (TypeSpecs) Take

func (r TypeSpecs) Take(size int) TypeSpecs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL