MCPcopy
hub / github.com/flipped-aurora/gin-vue-admin / PluginEnter

Struct PluginEnter

server/utils/ast/plugin_enter.go:11–23  ·  view source on GitHub ↗

PluginEnter 插件化入口 ModuleName := PackageName.GroupName.ServiceName

Source from the content-addressed store, hash-verified

9// PluginEnter 插件化入口
10// ModuleName := PackageName.GroupName.ServiceName
11type 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
25func (a *PluginEnter) Parse(filename string, writer io.Writer) (file *ast.File, err error) {
26 if filename == "" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected