PluginEnter 插件化入口 ModuleName := PackageName.GroupName.ServiceName
| 9 | // PluginEnter 插件化入口 |
| 10 | // ModuleName := PackageName.GroupName.ServiceName |
| 11 | type PluginEnter struct { |
| 12 | Base |
| 13 | Type Type // 类型 |
| 14 | Path string // 文件路径 |
| 15 | ImportPath string // 导包路径 |
| 16 | RelativePath string // 相对路径 |
| 17 | StructName string // 结构体名称 |
| 18 | StructCamelName string // 结构体小驼峰名称 |
| 19 | ModuleName string // 模块名称 |
| 20 | GroupName string // 分组名称 |
| 21 | PackageName string // 包名 |
| 22 | ServiceName string // 服务名称 |
| 23 | } |
| 24 | |
| 25 | func (a *PluginEnter) Parse(filename string, writer io.Writer) (file *ast.File, err error) { |
| 26 | if filename == "" { |
nothing calls this directly
no outgoing calls
no test coverage detected