Help us shape the future of Go! Take the 2026 Go Developer Survey

runechunk

package
v0.4.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package runechunk splits platform text at readable rune boundaries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Split

func Split(text string, limit int) []string

Split cuts text into chunks of at most limit runes, preferring paragraph breaks, then line breaks, then spaces, then a hard cut. Empty input or a non-positive limit yields no chunks.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL