This is a simple package which exposes two functions allowing uniform linewrapping of arbitrary input string data.
It allows line wrapping using customizable left/right offsets and alignment. Supported alignments are: Left, Right, Justified and Center.
wrap_test.go and the output in the
for usage examples.
go get github.com/jteeuwen/linewrap
Unless otherwise stated, all of the work in this project is subject to a 1-clause BSD license. Its contents can be found in the enclosed LICENSE file.