textlimit

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package textlimit provides UTF-8-safe bounds for diagnostic text stored by BlockQueue. It is internal so persistence and worker boundaries share one implementation without expanding the public API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UTF8

func UTF8(value string, maxBytes int) string

UTF8 normalizes value to valid UTF-8 and limits it to maxBytes. Truncated values retain a visible suffix when the limit is large enough to contain it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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