Skip to content

SHA65536/textwrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.