twrap.mod

module
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2019 License: MIT

README

[GoDoc]((https://godoc.org/github.com/nickwells/twrap.mod)

twrap.mod

This provides ways of wrapping text printed to the terminal

You first construct a wrapper object TWConf and then you can use the various Wrap methods to print text indented and wrapped at the target line length.

Here is a simple example

twc := twrap.NewTWConf()
twc.Wrap("the quality of mercy is not strained", 5)

More examples are available in the example test files.

Directories

Path Synopsis
Package twrap provides supporting functions for printing wrapped text.
Package twrap provides supporting functions for printing wrapped text.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL