README ¶ textwrap textwrap is a package made to simplify formatting text in a size limited space. Usage Import the package into your project import "github.com/sha65536/textwrap" Wrap a text using Wrap result, err := textwrap.Wrap("Hello There. General Kenobi.", 12) Will result in: Hello There. General Kenobi. Expand ▾ Collapse ▴ Documentation ¶ Overview ¶ Package textwrap does the main part of formatting the string Index ¶ func Wrap(input string, size int) (string, error) func WrapCustom(input string, size int, delim, end string) ([]string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Wrap ¶ func Wrap(input string, size int) (string, error) Wrap calls WrapCustom with default paramets And returns the output joined by the line ending. func WrapCustom ¶ func WrapCustom(input string, size int, delim, end string) ([]string, error) WrapCustom is the main function of the repo Given an input, and desired size Types ¶ This section is empty. Source Files ¶ View all Source files textwrap.go Click to show internal directories. Click to hide internal directories.