lo
lo copied to clipboard
Request: Chop(string) and Chomp(string)
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)?
I will make ruby version of chop.
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.