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

Function saveColorPatternsFile

internal/colorpatterns/admin.go:48–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48func saveColorPatternsFile() error {
49 path := configs.GetFilePathsConfig().DataFiles.String() + `/color-patterns.yaml`
50 bytes, err := yaml.Marshal(numericPatterns)
51 if err != nil {
52 return fmt.Errorf("marshaling color patterns: %w", err)
53 }
54 return util.WriteFile(path, bytes, 0644)
55}

Callers 2

SaveColorPatternFunction · 0.85
DeleteColorPatternFunction · 0.85

Calls 3

GetFilePathsConfigFunction · 0.92
WriteFileFunction · 0.92
StringMethod · 0.65

Tested by

no test coverage detected