textutil

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TruncateRunes

func TruncateRunes(s string, maxRunes int) string

TruncateRunes returns s truncated to at most maxRunes Unicode code points.

func TruncateRunesWithSuffix

func TruncateRunesWithSuffix(s string, maxRunes int, suffix string) string

TruncateRunesWithSuffix returns s truncated to at most maxRunes Unicode code points, appending suffix when truncation occurs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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