Documentation
¶
Index ¶
- func ParseTypeDeclaration(decl *ast.GenDecl) (*StructDeclaration, *InterfaceDeclaration)
- type FieldDeclaration
- type Function
- type FunctionReceiver
- type GoFile
- type GoPackage
- func (pack *GoPackage) GetFile(fileName string) (*GoFile, error)
- func (pack *GoPackage) GetFiles() []*GoFile
- func (pack *GoPackage) GetFunctions() []*Function
- func (pack *GoPackage) GetName() string
- func (pack *GoPackage) GetReceiverFunctions(recieverName string) []*Function
- func (pack *GoPackage) GetStructs() []*StructDeclaration
- func (pack *GoPackage) String() string
- type Import
- type InterfaceDeclaration
- type StructDeclaration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseTypeDeclaration ¶
func ParseTypeDeclaration(decl *ast.GenDecl) (*StructDeclaration, *InterfaceDeclaration)
Types ¶
type FieldDeclaration ¶
func ParseFieldDeclaration ¶
func ParseFieldDeclaration(decl *ast.Field) *FieldDeclaration
func (FieldDeclaration) String ¶
func (f FieldDeclaration) String() string
type Function ¶
type Function struct { Name string Doc *string ArgumentTypes []*FieldDeclaration ReturnTypes []*FieldDeclaration Receiver *FunctionReceiver Body string }
func ParseFunction ¶
func (*Function) Declaration ¶
type FunctionReceiver ¶
type FunctionReceiver struct { Name *string RecvType string // contains filtered or unexported fields }
func (*FunctionReceiver) String ¶
func (r *FunctionReceiver) String() string
type GoFile ¶
type GoFile struct {
// contains filtered or unexported fields
}
func (*GoFile) GetFunctions ¶
func (*GoFile) GetStructs ¶
func (file *GoFile) GetStructs() []*StructDeclaration
type GoPackage ¶
type GoPackage struct {
// contains filtered or unexported fields
}
func ParsePackage ¶
func (*GoPackage) GetFunctions ¶
func (*GoPackage) GetReceiverFunctions ¶
func (*GoPackage) GetStructs ¶
func (pack *GoPackage) GetStructs() []*StructDeclaration
type Import ¶
type Import struct {
// contains filtered or unexported fields
}
func ParseImport ¶
func ParseImport(imp *ast.ImportSpec) *Import
type InterfaceDeclaration ¶
func (*InterfaceDeclaration) String ¶
func (s *InterfaceDeclaration) String() string
type StructDeclaration ¶
type StructDeclaration struct { Name string Doc *string Variables []*FieldDeclaration }
func (*StructDeclaration) String ¶
func (s *StructDeclaration) String() string
Click to show internal directories.
Click to hide internal directories.