| 9 | ) |
| 10 | |
| 11 | type PluginInitializeV2 struct { |
| 12 | Base |
| 13 | Type Type // 类型 |
| 14 | Path string // 文件路径 |
| 15 | PluginPath string // 插件路径 |
| 16 | RelativePath string // 相对路径 |
| 17 | ImportPath string // 导包路径 |
| 18 | StructName string // 结构体名称 |
| 19 | PackageName string // 包名 |
| 20 | } |
| 21 | |
| 22 | func (a *PluginInitializeV2) Parse(filename string, writer io.Writer) (file *ast.File, err error) { |
| 23 | if filename == "" { |
nothing calls this directly
no outgoing calls
no test coverage detected