utf8limit

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TruncateBytes

func TruncateBytes(value string, limit int) string

TruncateBytes returns value truncated to at most limit bytes without splitting a UTF-8 encoded rune. Non-positive limits preserve the historical no-limit policy used by preview callers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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