Closed alexander-bauer closed 12 years ago
Prewritten regexes, which are not subject to change or any sort of variability, should be made using regex.MustCompile(). This will cause a runtime panic if they fail to compile, which will never happen if they are not subject to change.
regex.MustCompile()
Prewritten regexes, which are not subject to change or any sort of variability, should be made using
regex.MustCompile()
. This will cause a runtime panic if they fail to compile, which will never happen if they are not subject to change.