3 ms·
regexp.MustCompile doesn't result in a compile error; it panics at runtime. The purpose is to simplify compiling regexps at the global level, and the assumption
by kivikakk 13y ago
regexp.MustCompile doesn't result in a compile error; it panics at runtime. The purpose is to simplify compiling regexps at the global level, and the assumption is it's a hard-coded regexp that can't be wrong.