Go Wordwrap
Break paragraphs at a chosen width for terminal reading.
mitchellh · Data and documents
GitHub projectOpen source Open on GitHubHow to try it
In a new Go module, add github.com/mitchellh/go-wordwrap at v1.0.1. Wrap a synthetic sentence and check the expected word boundaries.
What we tested
v1.0.1. Wrap a synthetic sentence and check the expected word boundaries. Wrapped the sample text at the expected space and preserved its words.
Reviews
Rate this repoMore to explore
- GoAWKFilter and calculate over text and tabular data with AWK.GitHub projectOpen source
- pupSelect text and elements from local HTML using terminal commands.GitHub projectOpen source
- fx JSON toolExplore or transform JSON data in a terminal.GitHub projectOpen source