Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
func NewPrinter ¶
func NewPrinter(opts ...PrinterOption) *Printer
NewPrinter takes a variadic slice of PrinterOptions and returns a configured Printer instance.
type PrinterConfig ¶
func (*PrinterConfig) Default ¶
func (c *PrinterConfig) Default()
func (*PrinterConfig) Option ¶
func (c *PrinterConfig) Option(opts ...PrinterOption)
type PrinterOption ¶
type PrinterOption interface {
ConfigurePrinter(*PrinterConfig)
}
type WithErr ¶
WithErr configures the Err stream to the given io.Writer implementations.
func (WithErr) ConfigurePrinter ¶
func (w WithErr) ConfigurePrinter(c *PrinterConfig)
type WithOut ¶
WithOut configures the Out stream to the given io.Writer implementations.
func (WithOut) ConfigurePrinter ¶
func (w WithOut) ConfigurePrinter(c *PrinterConfig)
Click to show internal directories.
Click to hide internal directories.