Documentation ¶
Index ¶
- type InterfaceInfo
- type InterfacePath
- type InterfaceSet
- type Method
- type Param
- func (p *Param) AllowType() bool
- func (p *Param) Eq(q Param) bool
- func (p *Param) InMainPkg() bool
- func (p *Param) IsError() bool
- func (p *Param) IsGenM() bool
- func (p *Param) IsGenRowsAffected() bool
- func (p *Param) IsGenT() bool
- func (p *Param) IsInterface() bool
- func (p *Param) IsMap() bool
- func (p *Param) IsNull() bool
- func (p *Param) IsTime() bool
- func (p *Param) SetName(name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterfaceInfo ¶
type InterfaceInfo struct { Name string Doc string Methods []*Method Package string ApplyStruct []string }
InterfaceInfo ...
func (*InterfaceInfo) IsMatchStruct ¶
func (i *InterfaceInfo) IsMatchStruct(name string) bool
type InterfacePath ¶
func GetInterfacePath ¶
func GetInterfacePath(v interface{}) (paths []*InterfacePath, err error)
GetInterfacePath get interface's directory path and all files it contains
type InterfaceSet ¶
type InterfaceSet struct {
Interfaces []InterfaceInfo
}
InterfaceSet ...
func (*InterfaceSet) ParseFile ¶
func (i *InterfaceSet) ParseFile(paths []*InterfacePath, structNames []string) error
ParseFile get interface's info from source file
Click to show internal directories.
Click to hide internal directories.