textutil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Indent

func Indent(text, indent string) string

Indent prepends indent to each line of text.

func Synopsis

func Synopsis(text string) string

Synopsis returns the first sentence of text.

func Unindent

func Unindent(text string) string

Unindent removes indentation from non-blank lines in text.

func Wrap

func Wrap(text string, width int) string

Wrap wraps lines in text to width. Indented lines are considered preformatted and are not modified by Wrap.

BUG: does not properly handle multibyte runes, accents and such.

Types

This section is empty.

Jump to

Keyboard shortcuts

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