build: support either stdlib or 3rd-party regexp (#1706)

This commit is contained in:
Richard Gomez authored and GitHub committed 2025-01-20 10:45:31 -06:00
1 parent 049f5b2435
commit 3f4d91fc22
47 files changed
+102 -123

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
//go:build stdregex
package regexp
import (
re "regexp"
)
const Version = "stdlib"
type Regexp = re.Regexp
func MustCompile(str string) *re.Regexp {
return re.MustCompile(str)
}