(input string, patternName string, wordsOnly ...bool)
| 167 | } |
| 168 | |
| 169 | func UtilApplyColorPattern(input string, patternName string, wordsOnly ...bool) string { |
| 170 | |
| 171 | if len(wordsOnly) > 0 && wordsOnly[0] { |
| 172 | return colorpatterns.ApplyColorPattern(input, patternName, colorpatterns.Words) |
| 173 | } |
| 174 | return colorpatterns.ApplyColorPattern(input, patternName) |
| 175 | } |
| 176 | |
| 177 | func UtilGetConfig() configs.Config { |
| 178 | return configs.GetConfig() |
no test coverage detected