Files
crockery/vendor/github.com/emersion/go-textwrapper/README.md
2018-06-28 01:09:56 +01:00

589 B

go-textwrapper

GoDoc Build Status

A writer that wraps long text lines to a specified length

Usage

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