Documentation
¶
Index ¶
- func FormatCSS(buf []byte, p *core.Printer) error
- func FormatCSSIndented(buf []byte, p *core.Printer, baseIndent int) error
- func FormatCSV(buf []byte, p *core.Printer) error
- func FormatEventStream(r io.Reader, p *core.Printer) error
- func FormatHTML(buf []byte, w *core.Printer) error
- func FormatJSON(buf []byte, p *core.Printer) error
- func FormatMsgPack(buf []byte, p *core.Printer) error
- func FormatNDJSON(r io.Reader, p *core.Printer) error
- func FormatProtobuf(buf []byte, p *core.Printer) error
- func FormatProtobufWithDescriptor(buf []byte, md protoreflect.MessageDescriptor, p *core.Printer) error
- func FormatProtobufWithSchema(buf []byte, schema *fetchproto.Schema, typeName string, p *core.Printer) error
- func FormatXML(buf []byte, w *core.Printer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatCSSIndented ¶ added in v0.16.0
FormatCSSIndented formats CSS with a base indentation level. Used for formatting CSS embedded in HTML <style> tags.
func FormatEventStream ¶ added in v0.6.0
FormatEventStream formats the provided stream of server sent events to the Printer, flushing after each event.
func FormatHTML ¶ added in v0.16.0
FormatHTML formats the provided HTML to the Printer.
func FormatJSON ¶
FormatJSON formats the provided raw JSON data to the Printer.
func FormatMsgPack ¶ added in v0.12.0
FormatMsgPack formats the provided raw MessagePack data to the Printer as JSON.
func FormatNDJSON ¶ added in v0.5.0
FormatNDJSON streams the provided newline-delimited JSON to the Printer, flushing every line.
func FormatProtobuf ¶ added in v0.16.0
FormatProtobuf formats the provided raw protobuf data to the Printer.
func FormatProtobufWithDescriptor ¶ added in v0.16.0
func FormatProtobufWithDescriptor(buf []byte, md protoreflect.MessageDescriptor, p *core.Printer) error
FormatProtobufWithDescriptor formats protobuf data as JSON using a message descriptor.
func FormatProtobufWithSchema ¶ added in v0.16.0
func FormatProtobufWithSchema(buf []byte, schema *fetchproto.Schema, typeName string, p *core.Printer) error
FormatProtobufWithSchema formats protobuf data as JSON using the provided schema.
Types ¶
This section is empty.