output

package
v2.0.0-beta5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePrinter

func ChangePrinter(printer Printer)

func Printf

func Printf(format string, args ...interface{})

func Println

func Println(format string)

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)

func (*ConsolePrinter) Write

func (c *ConsolePrinter) Write(b []byte) (int, error)

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)

func (*VoidPrinter) Write

func (v *VoidPrinter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL