Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
Name string `json:"name"` //字段名
Type *Type `json:"type"` //字段类型
Bind string `json:"bind"` //字段绑定 //[]*FieldBind
Comment string `json:"comment"` //注释
}
Field 消息字段
type Func ¶
type Func struct {
Path string `json:"path"` //包名
Sel string `json:"sel"` //选择器
Name string `json:"name"` //名
Router string `json:"router"` //路由
Params []*Param `json:"params"` //输入参数
Results []*Param `json:"results"` //输出参数
Method []string `json:"method"` //请求方法
Comment []string `json:"comment"` //注释
}
Func 方法
type Import ¶
type Import struct {
Name string `json:"name"` //别名
Path string `json:"path"` //包名
Alias bool `json:"alias"` //是否别名
}
Import 导入 <alias> "<package>"
type Imports ¶
type Imports struct {
Imports []*Import `json:"imports"`
// contains filtered or unexported fields
}
type Param ¶
type Param struct {
Index int `json:"index"` //索引位置
Name string `json:"name"` //参数名
Type *Type `json:"type"` //参数类型
}
Param 参数
type Project ¶
type Project struct {
Root string `json:"root"` //跟目录
Mod string `json:"mod"` //模块名
Imports *Imports `json:"imports"` //导入
Structs []*Struct `json:"structs"` //消息
Funs []*Func `json:"funcs"` //方法
}
Project 项目
Click to show internal directories.
Click to hide internal directories.