MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / loadPlugins

Method loadPlugins

server/plugin.go:34–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34func (srv *Server) loadPlugins() {
35 os.Mkdir("plugins", 0755)
36 dir, _ := os.ReadDir("plugins")
37 for _, entry := range dir {
38 if entry.IsDir() {
39 continue
40 }
41 srv.loadPlugin("plugins/" + entry.Name())
42 }
43}
44
45func (srv *Server) loadPlugin(name string) {
46 pl, err := plugin.Open(name)

Callers 1

StartMethod · 0.95

Calls 2

loadPluginMethod · 0.95
NameMethod · 0.80

Tested by

no test coverage detected