# wordwrap **Repository Path**: mirrors_andreyvit/wordwrap ## Basic Information - **Project Name**: wordwrap - **Description**: Splits a bunch of text into lines (Golang) - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README wordwrap (Golang) ================= [![GoDoc](https://godoc.org/github.com/andreyvit/wordwrap?status.svg)](https://godoc.org/github.com/andreyvit/wordwrap) Splits a bunch of text into lines. Installation ------------ ``` import ( "github.com/andreyvit/wordwrap" ) ``` Example ------- Enumerate lines: ```go wordwrap.Wrap(lorem, 40, wordwrap.Options{}, func(line string) { fmt.Println(line) }) ``` or get a string: ```go fmt.Print(wordwrap.WrapString(lorem, 40, wordwrap.Options{})) ```