Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 466 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 466 Bytes

textwrap

Go Reference

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.