Documentation ¶
Overview ¶
Package output handles functions relating to displaying the final output
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EmptyStruct ¶
type EmptyStruct struct{}
EmptyStruct is used when we wish to return an empty object.
type UniPrinter ¶ added in v0.2.7
UniPrinter is a universal printer that can handle different output formats.
func NewUniPrinter ¶ added in v0.2.7
func NewUniPrinter(outputFormat string) *UniPrinter
NewUniPrinter creates a new UniPrinter based on the specified output format and optional functional options.
func (UniPrinter) Display ¶ added in v0.2.7
func (prt UniPrinter) Display(data any) error
Display prints the data using the configured printer and color settings.
Click to show internal directories.
Click to hide internal directories.