Charles Corbett · @chas
31 followers · 287 posts · Server tty0.social

So one of the problems I have to solve writing my library was formatting text within a drawable area. I ended up writing which is another library specifically for manipulating []rune and dealing with whitespace, directional justification, and even producing a "full" justification style by normalizing whitespace across a []rune.

The library can be found here with MIT License:

github.com/asciifaceman/rslice

Docs:

pkg.go.dev/github.com/asciifac

#golang #tui #tooey #rslice #programming #foss #oss

Last updated 1 year ago