Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Printer ¶
type Printer[T any] struct { // contains filtered or unexported fields }
Printer renders a slice of T in the correct output mode.
func (*Printer[T]) SetSingleItem ¶
func (p *Printer[T]) SetSingleItem()
SetSingleItem marks the printer to emit a JSON object instead of an array.
Click to show internal directories.
Click to hide internal directories.