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

modeltext

package
v0.0.21 Latest Latest
Warning

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

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

Documentation

Overview

Package modeltext contains protocol-neutral hygiene for model catalog text.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripControls

func StripControls(value string) string

StripControls removes terminal/log control characters while preserving all ordinary text. Callers decide whether modification means sanitize or reject.

func TruncateRunes

func TruncateRunes(value string, limit int) string

TruncateRunes caps value without splitting a multi-byte rune.

Types

This section is empty.

Jump to

Keyboard shortcuts

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