()
| 22 | nilCursorLedis = []byte("") |
| 23 | nilCursorRedis = []byte("0") |
| 24 | ) |
| 25 | |
| 26 | // globToRegex converts a Redis glob pattern to a regex pattern |
| 27 | // Redis glob patterns use * (any number of characters), ? (single character), [..] (character class) |
| 28 | func globToRegex(pattern string) string { |
| 29 | if pattern == "" { |
| 30 | return "^$" |
| 31 | } |
| 32 | |
| 33 | var regex strings.Builder |
| 34 | regex.WriteString("^") |
| 35 |
nothing calls this directly
no outgoing calls
no test coverage detected