Declarative JSON validation and transformation for Go. Flatten any document into dotted keys, target them with wildcards or regex, and run each value through a pipeline of validators and operators. Typed errors, no panics, zero dependencies.
regexpu’s core functionality, i.e. `rewritePattern(pattern, flag, options)`, which enables rewriting regular expressions that make use of the ES6 `u` flag into equivalent ES5-compatible regular expression patterns.