render

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package render turns a (masked) result into the text an agent sees: TSV or JSON, within the profile's row, cell and output caps. Control and bidirectional characters are escaped, invalid UTF-8 is replaced, NULL is "NULL" (null in JSON), binary values are "<bytes:N>" and times ISO 8601.

Cells are cut while they are converted, so a huge value never costs more than its cap in output.

Index

Constants

View Source
const (
	FormatTSV  = "tsv"
	FormatJSON = "json"
)

Formats.

Variables

This section is empty.

Functions

func Render

func Render(w io.Writer, res engine.Result, l config.Limits, format string) error

Render writes res to w in format "tsv" (the default when empty) or "json". Limits that are zero or negative take the non-production defaults. Rows beyond MaxRows are dropped and reported as truncated; rows that would push the output past MaxOutputBytes are dropped with a marker.

Types

This section is empty.

Jump to

Keyboard shortcuts

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