ADDED:
* `stringsx` package
** `stringsx.Indent()`, to indent/prefix multiline strings
** `stringsx.Redact()`, to mask strings
** `stringsx.TrimLines()`, like strings.TrimSpace() but multiline
** `stringsx.TrimSpaceLeft()`, like strings.TrimSpace() but only to the
    left of a string.
** `stringsx.TrimSpaceRight()`, like strings.TrimSpace() but only to the
    right of a string.
This commit is contained in:
brent saner
2025-11-14 01:02:59 -05:00
parent e101758187
commit b1d8ea34a6
7 changed files with 724 additions and 0 deletions

4
stringsx/doc.go Normal file
View File

@@ -0,0 +1,4 @@
/*
Package stringsx aims to extend functionality of the stdlib [strings] module.
*/
package stringsx