structural

package
v0.0.0-...-2a023ee Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NormalPrinter

type NormalPrinter struct {
	Msg     string
	Printer PrinterAPI
}

func (*NormalPrinter) Print

func (c *NormalPrinter) Print() error

type PacktPrinter

type PacktPrinter struct {
	Msg     string
	Printer PrinterAPI
}

func (*PacktPrinter) Print

func (c *PacktPrinter) Print() error

type PrinterAPI

type PrinterAPI interface {
	PrintMessage(string) error
}

type PrinterAPI1

type PrinterAPI1 struct{}

func (*PrinterAPI1) PrintMessage

func (d *PrinterAPI1) PrintMessage(msg string) error

type PrinterAPI2

type PrinterAPI2 struct {
	Writer io.Writer
}

func (*PrinterAPI2) PrintMessage

func (d *PrinterAPI2) PrintMessage(msg string) error

type PrinterAbstraction

type PrinterAbstraction interface {
	Print() error
}

Jump to

Keyboard shortcuts

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