Golang Text Wrapper with Indent

The textwrap Go package contains code to wrap and indent text.
For example:
import "github.com/bassosimone/textwrap"
const (
indent = " "
width = 72
)
output := textwrap.Do(paragraph, width, indent)
The above example wraps paragraph with the given four spaces
indent such that lines are <= 72 chars.
Installation
To add this package as a dependency to your module:
go get github.com/bassosimone/textwrap
Development
To run the tests:
go test -v .
To measure test coverage:
go test -v -cover .
License
SPDX-License-Identifier: GPL-3.0-or-later
History
Adapted from bassosimone/clip.