Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.gitignore | H A D | 06-Jun-2016 | 266 | |||
.travis.yml | H A D | 06-Jun-2016 | 13 | |||
LICENSE | H A D | 06-Jun-2016 | 1 KiB | |||
README.md | H A D | 06-Jun-2016 | 589 | |||
wrapper.go | H A D | 06-Jun-2016 | 929 | |||
wrapper_test.go | H A D | 06-Jun-2016 | 1.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