lo icon indicating copy to clipboard operation
lo copied to clipboard

Request: Chop(string) and Chomp(string)

Open mcandre opened this issue 2 years ago • 2 comments

Can we get some more common string operations, such as the classic chop (force one rune truncation) and chomp (remove trailing runes only on CR, LF, or CRLF match)?

mcandre avatar May 05 '22 14:05 mcandre

I will make ruby version of chop.

wirekang avatar May 05 '22 15:05 wirekang

I already have a library for Go, called go-chop, that offers these.

But I wish to promote this functionality into a more well maintained Go library, such as lo.

mcandre avatar Jun 17 '22 18:06 mcandre