Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldInterface ¶
type ItInterface ¶
type ItInterface interface {
GetName() *ast.Ident
GetObj() *ast.InterfaceType
}
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) GetInterface ¶
func (p *Parser) GetInterface() <-chan ItInterface
func (*Parser) GetRawData ¶
func (*Parser) GetStruct ¶
func (p *Parser) GetStruct() <-chan StInterface
type ParserInterface ¶
type ParserInterface interface {
GetSource() string
GetFile() *ast.File
GetRawData() []byte
GetInterface() <-chan ItInterface
GetStruct() <-chan StInterface
}
func NewParser ¶
func NewParser(source string) ParserInterface
type StInterface ¶
type StInterface interface {
GetName() *ast.Ident
GetObj() *ast.StructType
GetFields(raw []byte) <-chan FieldInterface
}
Click to show internal directories.
Click to hide internal directories.