package
0.0.0-20241123141403-e7b9dc6866d0
Repository: https://github.com/unix-world/smartgoext.git
Documentation: pkg.go.dev

# README

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

# Functions

Returns a writer that splits its input into multiple parts that have the same length and adds a separator between these parts.
Creates a RFC822 text wrapper.