ExampleMustCompile demonstrates panic-on-error compilation.
()
| 19 | |
| 20 | // ExampleMustCompile demonstrates panic-on-error compilation. |
| 21 | func ExampleMustCompile() { |
| 22 | re := coregex.MustCompile(`hello`) |
| 23 | fmt.Println(re.MatchString("hello world")) |
| 24 | // Output: true |
| 25 | } |
| 26 | |
| 27 | // ExampleRegex_Find demonstrates finding the first match. |
| 28 | func ExampleRegex_Find() { |
nothing calls this directly
no test coverage detected