stdlib_regex.go 185 B

123456789101112131415
  1. //go:build stdregex
  2. package regexp
  3. import (
  4. re "regexp"
  5. )
  6. const Version = "stdlib"
  7. type Regexp = re.Regexp
  8. func MustCompile(str string) *re.Regexp {
  9. return re.MustCompile(str)
  10. }