Documentation ¶
Index ¶
- type ArrayType
- func (f *ArrayType) GetAlias() string
- func (f *ArrayType) GetPkgName() string
- func (f *ArrayType) GetPkgPath() string
- func (f *ArrayType) ID() string
- func (f *ArrayType) IsObj() bool
- func (f *ArrayType) SetAlias(alias string)
- func (f *ArrayType) SetPkgName(pkgName string)
- func (f *ArrayType) SetPkgPath(pkgPath string)
- func (f *ArrayType) Type() string
- type DeclField
- type FieldType
- func (f *FieldType) GetAlias() string
- func (f *FieldType) GetPkgName() string
- func (f *FieldType) GetPkgPath() string
- func (f *FieldType) ID() string
- func (f *FieldType) IsObj() bool
- func (f *FieldType) SetAlias(alias string)
- func (f *FieldType) SetPkgName(pkgName string)
- func (f *FieldType) SetPkgPath(pkgPath string)
- func (f *FieldType) Type() string
- type Fielder
- type FuncData
- type GoFile
- type ImportData
- type MapType
- func (f *MapType) GetAlias() string
- func (f *MapType) GetPkgName() string
- func (f *MapType) GetPkgPath() string
- func (f *MapType) ID() string
- func (f *MapType) IsObj() bool
- func (f *MapType) SetAlias(alias string)
- func (f *MapType) SetPkgName(pkgName string)
- func (f *MapType) SetPkgPath(pkgPath string)
- func (f *MapType) Type() string
- type PkgData
- type StructData
- type StructType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayType ¶
func (*ArrayType) GetPkgName ¶
func (*ArrayType) GetPkgPath ¶
func (*ArrayType) SetPkgName ¶
func (*ArrayType) SetPkgPath ¶
type FieldType ¶
type FieldType struct { // 别名 Alias string //包路径 PkgPath string //类型名 PkgName string // 是否 struct Obj bool }
func (*FieldType) GetPkgName ¶
func (*FieldType) GetPkgPath ¶
func (*FieldType) SetPkgName ¶
func (*FieldType) SetPkgPath ¶
type FuncData ¶
type FuncData struct { Doc string Title string Description string Return string FuncName string StructName string PkgPath string Params []*DeclField Results []*DeclField }
func (*FuncData) SetPkgPath ¶
func (s *FuncData) SetPkgPath(pkgPath string, imports map[string]ImportData)
type GoFile ¶
func NewGoFiles ¶
type ImportData ¶
type MapType ¶
func (*MapType) GetPkgName ¶
func (*MapType) GetPkgPath ¶
func (*MapType) SetPkgName ¶
func (*MapType) SetPkgPath ¶
type PkgData ¶
type PkgData struct { FileInfo GoFile PackName string PkgPath string Imports map[string]ImportData Structs []*StructData Funcs []*FuncData }
func (*PkgData) FindStruct ¶
func (p *PkgData) FindStruct(name string) *StructData
type StructData ¶
func (*StructData) ID ¶
func (s *StructData) ID() string
func (*StructData) SetPkgPath ¶
func (s *StructData) SetPkgPath(pkgPath string)
type StructType ¶
type StructType string
var Interface_Type StructType = "interface"
var Struct_Type StructType = "struct"
func (StructType) String ¶
func (s StructType) String() string
Click to show internal directories.
Click to hide internal directories.