Documentation ¶
Index ¶
- type Field
- type Method
- func (mt *Method) GenerateEmptyReturn() string
- func (mt *Method) HasReturnError() bool
- func (mt *Method) LenOut() int
- func (mt *Method) LenOutIfEq(ln int) bool
- func (mt *Method) LenOutIfGt(ln int) bool
- func (mt *Method) Parse(method reflect.Method)
- func (mt *Method) ParseParams(method reflect.Method)
- type Param
- type Struct
- type StructItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Method ¶
type Method struct { Name string PackagePath string InParams []*Param OutParams []*Param NamedString string Index int }
func (*Method) GenerateEmptyReturn ¶
func (*Method) HasReturnError ¶
func (*Method) LenOutIfEq ¶
func (*Method) LenOutIfGt ¶
func (*Method) ParseParams ¶
type Struct ¶
type Struct struct { Name string `json:"name"` BasePacket string `json:"basepacket"` Imports []string `json:"imports"` Item *StructItem `json:"item"` RelatedItems []*StructItem `json:"related"` Object any `json:"-"` }
func NewStructParser ¶
func (*Struct) ParseFields ¶
func (s *Struct) ParseFields(relatedStrck *StructItem)
func (*Struct) ParseMethods ¶
func (s *Struct) ParseMethods(relatedStrck *StructItem)
func (*Struct) ParseStructItem ¶
type StructItem ¶
type StructItem struct { Name string Fields []Field Methods []*Method PackagePath string Imports []string TypeName string BasePacket string Object reflect.Type `json:"-"` }
func (*StructItem) AddImport ¶
func (si *StructItem) AddImport(imp string)
func (*StructItem) GetBaseItem ¶
func (si *StructItem) GetBaseItem(item reflect.Type) reflect.Type
func (*StructItem) Parse ¶
func (si *StructItem) Parse(parser func(reflect.Type))
Click to show internal directories.
Click to hide internal directories.