tartrazine/regex/oniguruma.go
Antonio Jesus Navarro Perez 15bb13117f Refactor Oniguruma integration
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>
2018-08-29 18:01:13 +03:00

18 lines
248 B
Go

// +build oniguruma
package regex
import (
"github.com/moovweb/rubex"
)
type EnryRegexp = *rubex.Regexp
func MustCompile(str string) EnryRegexp {
return rubex.MustCompile(str)
}
func QuoteMeta(s string) string {
return rubex.QuoteMeta(s)
}