jsonl

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package jsonl writes one JSON line per usage event to stdout, stderr, or a file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sink

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

func New

func New(output string) (*Sink, error)

New creates a sink for output "stdout", "stderr", or a file path (append mode).

func (*Sink) Close

func (s *Sink) Close() error

func (*Sink) OnUsage

func (s *Sink) OnUsage(_ context.Context, ev hooks.UsageEvent)

Jump to

Keyboard shortcuts

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