text

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TruncateHead added in v0.6.9

func TruncateHead(s string, maxBytes int) string

TruncateHead keeps the first maxBytes of s at a UTF-8 boundary and appends a "…N chars truncated…" marker. Useful when only the start of the value is informative.

Types

This section is empty.

Jump to

Keyboard shortcuts

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