Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangePrinter ¶
func ChangePrinter(printer Printer)
Types ¶
type ConsolePrinter ¶
type ConsolePrinter struct{}
func (*ConsolePrinter) Printf ¶
func (c *ConsolePrinter) Printf(format string, args ...interface{})
func (*ConsolePrinter) Println ¶
func (c *ConsolePrinter) Println(format string)
type Printer ¶
type Printer interface { Printf(string, ...interface{}) Println(string) Write([]byte) (int, error) }
func GetPrinter ¶
func GetPrinter() Printer
func NewConsolePrinter ¶
func NewConsolePrinter() Printer
type VoidPrinter ¶
type VoidPrinter struct{}
func (*VoidPrinter) Printf ¶
func (v *VoidPrinter) Printf(_ string, _ ...interface{})
func (*VoidPrinter) Println ¶
func (v *VoidPrinter) Println(_ string)
Click to show internal directories.
Click to hide internal directories.