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

eventlog

package
v0.2.7 Latest Latest
Warning

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

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

Documentation

Overview

Package eventlog writes a run's events as JSON lines, for other programs and for recordings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(r io.Reader) ([]event.Event, error)

Read decodes a recording written by JSONL. Blank lines are skipped. Each event keeps its recorded Iteration and Timestamp. The first bad line ends the read, and the error names its line number.

Types

type JSONL

type JSONL struct {
	// contains filtered or unexported fields
}

JSONL writes each event as one JSON line. It is safe for concurrent use.

func NewJSONL

func NewJSONL(w io.Writer) *JSONL

func (*JSONL) Write

func (j *JSONL) Write(evt event.Event)

Jump to

Keyboard shortcuts

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