MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / loadPluginMutators

Function loadPluginMutators

internal/mutators/plugin.go:24–30  ·  view source on GitHub ↗

loadPluginMutators walks every sub-filesystem of every registered plugin FS, reading mutator YAML files from a "mutators/" prefix and merging them into dst.

(dst map[string]*MutatorSpec)

Source from the content-addressed store, hash-verified

22// loadPluginMutators walks every sub-filesystem of every registered plugin FS,
23// reading mutator YAML files from a "mutators/" prefix and merging them into dst.
24func loadPluginMutators(dst map[string]*MutatorSpec) {
25 for _, groupFS := range pluginFileSystems {
26 for subFS := range groupFS.AllFileSubSystems {
27 loadMutatorsFromFS(subFS, dst)
28 }
29 }
30}
31
32func loadMutatorsFromFS(subFS fs.ReadFileFS, dst map[string]*MutatorSpec) {
33 if pl, ok := subFS.(fileloader.PathLister); ok {

Callers 1

LoadDataFilesFunction · 0.85

Calls 1

loadMutatorsFromFSFunction · 0.85

Tested by

no test coverage detected