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