github.com/chainreactors/fingers@v1.2.1/fingers/regexp_re2.go (about) 1 //go:build !goregexp 2 // +build !goregexp 3 4 package fingers 5 6 import re2 "github.com/wasilibs/go-re2" 7 8 func compileRegexp(s string) (CompiledRegexp, error) { 9 return re2.Compile(s) 10 }