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

render

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package render turns daemon events into text for people and models: the CLI, harness hooks and the MCP server all show messages the same way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Event

func Event(ev api.Event, o Options) string

Event renders one event as a header line plus indented body lines.

func Events

func Events(evs []api.Event, max int) string

Events renders a batch for a model's context: a count line, then each event with thread headers.

func HumanSize

func HumanSize(n int64) string

HumanSize formats a byte count.

Types

type Options

type Options struct {
	ShowThread bool // include thread id and subject in the header
	Clock      bool // prefix a local HH:MM:SS time
	MaxText    int  // truncate long text and code parts (0: no limit)
}

Options tune the output.

Jump to

Keyboard shortcuts

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