format

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatEventStream added in v0.6.0

func FormatEventStream(r io.Reader, p *core.Printer) error

FormatEventStream formats the provided stream of server sent events to the Printer, flushing after each event.

func FormatJSON

func FormatJSON(buf []byte, p *core.Printer) error

FormatJSON formats the provided raw JSON data to the Printer.

func FormatMsgPack added in v0.13.1

func FormatMsgPack(buf []byte, p *core.Printer) error

FormatMsgPack formats the provided raw MessagePack data to the Printer as JSON.

func FormatNDJSON added in v0.5.0

func FormatNDJSON(r io.Reader, p *core.Printer) error

FormatNDJSON streams the provided newline-delimited JSON to the Printer, flushing every line.

func FormatXML

func FormatXML(buf []byte, w *core.Printer) error

FormatXML formats the provided XML to the Printer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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