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

Function GetColorPatternNames

internal/colorpatterns/colorpatterns.go:38–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36)
37
38func GetColorPatternNames() []string {
39
40 if !colorsCompiled {
41 CompileColorPatterns()
42 }
43
44 ret := []string{}
45
46 for name := range numericPatterns {
47 ret = append(ret, name)
48 }
49
50 sort.Slice(ret, func(i, j int) bool { return ret[i] < ret[j] })
51
52 return ret
53}
54
55func ApplyColorPattern(input string, pattern string, method ...ColorizeStyle) string {
56 if pattern == `` {

Callers

nothing calls this directly

Calls 1

CompileColorPatternsFunction · 0.85

Tested by

no test coverage detected