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

toon

package
v1.152.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package toon wraps tool outputs in TOON, a compact encoding of JSON that saves tokens on large structured results. Toolsets opt in with the `toon` field of their YAML declaration; teamloader applies the wrapper when enabled with teamloader.WithToon(toon.Wrap).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(inner tools.ToolSet, spec string) tools.ToolSet

Wrap TOON-encodes the JSON output of the tools whose name matches one of the comma-separated regular expressions in spec.

Types

This section is empty.

Jump to

Keyboard shortcuts

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