textclean

package
v0.2.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package textclean makes text captured from agents safe to store and print: tool output is captured verbatim from processes that emit binary, so it can carry NUL bytes and invalid UTF-8. Substituting U+FFFD keeps the surrounding text readable and marks where a byte was dropped rather than silently shortening the value.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeText

func SafeText(s string) string

SafeText returns s with NUL bytes and invalid UTF-8 replaced by U+FFFD.

Types

This section is empty.

Jump to

Keyboard shortcuts

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