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.
6 lines
217 B
Plaintext
6 lines
217 B
Plaintext
- Banner struct, with .Format(s string) method
|
|
-- draw border around multiline s
|
|
-- i have a version in python somewhere that does this, should dig that up
|
|
|
|
- create bytesx package that duplicates the functions here?
|