Versions in this module Expand all Collapse all v1 v1.0.1 Dec 23, 2024 Changes in this version + type DIYMethods struct + BaseStructType string + MethodName string + Methods []*Method + func GetModelMethod(v interface{}) (method *DIYMethods, err error) + func (m *DIYMethods) LoadMethods() error + func (m *DIYMethods) Visit(n ast.Node) (w ast.Visitor) + type InterfaceInfo struct + ApplyStruct []string + Doc string + Methods []*Method + Name string + Package string + func (i *InterfaceInfo) MatchStruct(name string) bool + type InterfacePath struct + Files []string + FullName string + Name string + Package string + func GetInterfacePath(v interface{}) (paths []*InterfacePath, err error) + type InterfaceSet struct + Interfaces []InterfaceInfo + func (i *InterfaceSet) ParseFile(paths []*InterfacePath, structNames []string) error + func (i *InterfaceSet) Visit(n ast.Node) (w ast.Visitor) + type Method struct + Body string + Doc string + MethodName string + Params []Param + Receiver Param + Result []Param + func DefaultMethodTableName(structName string) *Method + func (m *Method) DocComment() string + func (m *Method) GetBaseStructTmpl() string + func (m *Method) GetParamInTmpl() string + func (m *Method) GetResultParamInTmpl() string + func (m Method) FuncSign() string + type Param struct + IsArray bool + IsPointer bool + Name string + Package string + PkgPath string + Type string + func (p *Param) Eq(q Param) bool + func (p *Param) InMainPkg() bool + func (p *Param) IsBaseType() 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) IsSQLResult() bool + func (p *Param) IsSQLRow() bool + func (p *Param) IsSQLRows() bool + func (p *Param) IsTime() bool + func (p *Param) SetName(name string) + func (p *Param) TmplString() string + func (p *Param) TypeName() string