Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Function ¶
type Function struct {
Name, Doc string
Anonymous bool
// InputParams input params
InputParams []string
// ReturnParams return values
ReturnParams []string
}
Function go func
type Parser ¶
type Parser struct {
// Imports import list
Imports []string
// Structs struct list
Structs []*Struct
// Values variable list and constant list
Values []*Value
// Interfaces interface list
Interfaces []*Interface
// contains filtered or unexported fields
}
Parser ast parser
func ParseBytes ¶
ParseBytes parses the code and return a parser
func (*Parser) GetInterface ¶
type Struct ¶
type Struct struct {
Name, Doc string
// Fields struct field list
Fields []*StructField
}
Struct go struct
func (*Struct) RangeFieldTags ¶
Click to show internal directories.
Click to hide internal directories.