Registry / utility / mitchellh-go-wordwrap

mitchellh-go-wordwrap

JSON →
library1.0.1gogounverified

Provides word-wrapping functionality for strings in Go.

go get github.com/mitchellh/go-wordwrap
INSTALL
IMPORT
SIG · MITCHELLH-GO-WORDW
M
mitchellh-go-wordwrap
utilitygov1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

wordwrap
github.com/mitchellh/go-wordwrap

Wraps a string to a specified width.

package main import ( "fmt" "github.com/mitchellh/go-wordwrap" ) func main() { wrapped := wordwrap.WrapString("Hello world, this is a long string", 10) fmt.Println(wrapped) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
mitchellh-go-wordwrap — go get mitchellh-go-wordwrap · libregistry