I have a variety of projects that:
This package serves as:
Very alpha
$ echo '12345' | textwrap -length 2
12
34
5
import (
"fmt"
"regexp"
textwrap "git.dominic-ricottone.com/textwrap/common"
)
func main() {
a := []string{
"> hello!",
"> this is quoted",
"hi there!",
"this is not",
}
for _, line := range textwrap.WrapArray(a,10) {
fmt.Println(line)
}
}
GPLv3