mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 13:32:24 +00:00
15bb13117f
Instead of use a command to change imports before build, using a build tag to generate the correct binary. This will allow applications to compile enry using oniguruma with less troubles. Signed-off-by: Antonio Jesus Navarro Perez <antnavper@gmail.com>
18 lines
234 B
Go
18 lines
234 B
Go
// +build !oniguruma
|
|
|
|
package regex
|
|
|
|
import (
|
|
"regexp"
|
|
)
|
|
|
|
type EnryRegexp = *regexp.Regexp
|
|
|
|
func MustCompile(str string) EnryRegexp {
|
|
return regexp.MustCompile(str)
|
|
}
|
|
|
|
func QuoteMeta(s string) string {
|
|
return regexp.QuoteMeta(s)
|
|
}
|