Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.
/ go-textwrapper Public archive

A writer that wraps long text lines to a specified length

License

Notifications You must be signed in to change notification settings

emersion/go-textwrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A writer that wraps long text lines to a specified length

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages