(input string, pattern string, method ...ColorizeStyle)
| 53 | } |
| 54 | |
| 55 | func ApplyColorPattern(input string, pattern string, method ...ColorizeStyle) string { |
| 56 | if pattern == `` { |
| 57 | return input |
| 58 | } |
| 59 | patternValues, ok := numericPatterns[pattern] |
| 60 | if !ok { |
| 61 | return input |
| 62 | } |
| 63 | |
| 64 | return ApplyColors(input, patternValues, method...) |
| 65 | } |
| 66 | |
| 67 | func ApplyCharacterWarping(input string) string { |
| 68 |
no test coverage detected