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)
- func (p *Param) TypeName() 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
type Param ¶
type Param struct { PkgPath string // package's path: internal/model Package string // package's name: model Name string // param's name: user Type string // param's type: User IsArray bool // is array or not IsPointer bool // is pointer or not }
Param parameters in method
func (*Param) IsGenRowsAffected ¶
func (*Param) IsInterface ¶
Click to show internal directories.
Click to hide internal directories.