Advanced
Compare, cut, UTF-8 validation
| Function | What it does |
|---|---|
strings.Compare | Lexicographic comparison (-1, 0, or 1) |
strings.Cut | Cut string at first separator, returns [before, after, found] |
strings.CutPrefix | Remove prefix if present, returns [result, found] |
strings.CutSuffix | Remove suffix if present, returns [result, found] |
strings.ToValidUTF8 | Replace invalid UTF-8 sequences with replacement string |