Compile regexps once, rather than on every call
Compile regexps once, rather than on every call

There's no need to compile the regular expressions on a per function-call basis, nevermind a per-loop basis.
ivpusic/go-clicolor