MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / init

Function init

resources/plugin/plugin-load.go:161–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159 }), nil
160}
161func init() {
162 loader := new(pluginLoad)
163
164 err := yaml.Unmarshal(embeddedPlugin, loader)
165 // 释放内存
166 embeddedPlugin = nil
167 if err != nil {
168 panic(fmt.Errorf("unmarshal plugin inner:%w", err))
169 return
170 }
171 autowire.Autowired(loader)
172}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected