Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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.

About

A textwrapping library in Go

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /