()
| 13 | ) |
| 14 | |
| 15 | func init() { |
| 16 | err := LoadPlugins(&pluginDir, "embed", "plugin.yml") |
| 17 | if err != nil { |
| 18 | panic(err) |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | func LoadPlugins(fs *embed.FS, dir string, target string) error { |
| 23 | entries, err := fs.ReadDir(dir) |
nothing calls this directly
no test coverage detected