Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LegacyPrinter ¶
type MyLegacyPrinter ¶
type MyLegacyPrinter struct{}
func (*MyLegacyPrinter) Print ¶
func (l *MyLegacyPrinter) Print(s string) (newMsg string)
type NewPrinter ¶
type NewPrinter interface {
PrintStored() string
}
type PrinterAdapter ¶
type PrinterAdapter struct { OldPrinter LegacyPrinter Msg string }
func (*PrinterAdapter) PrintStored ¶
func (p *PrinterAdapter) PrintStored() (newMsg string)
Click to show internal directories.
Click to hide internal directories.