• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.gitignoreH A D06-Jun-2016266

.travis.ymlH A D06-Jun-201613

LICENSEH A D06-Jun-20161 KiB

README.mdH A D06-Jun-2016589

wrapper.goH A D06-Jun-2016929

wrapper_test.goH A D06-Jun-20161.1 KiB

README.md

1# go-textwrapper
2
3[![GoDoc](https://godoc.org/github.com/emersion/go-textwrapper?status.svg)](https://godoc.org/github.com/emersion/go-textwrapper)
4[![Build Status](https://travis-ci.org/emersion/go-textwrapper.svg?branch=master)](https://travis-ci.org/emersion/go-textwrapper)
5
6A writer that wraps long text lines to a specified length
7
8## Usage
9
10```go
11import (
12	"os"
13
14	"github.com/emersion/go-textwrapper"
15)
16
17func main() {
18	w := textwrapper.New(os.Stdout, "/", 5)
19
20	w.Write([]byte("helloworldhelloworldhelloworld"))
21	// Output: hello/world/hello/world/hello/world
22}
23```
24
25## License
26
27MIT
28