adapter

package
v0.0.0-...-6e5d4c6 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: MIT Imports: 1 Imported by: 0

README

Adapter

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LegacyPrinter

type LegacyPrinter interface {
	Print(s string) string
}

type ModernPrinter

type ModernPrinter interface {
	PrintStored() string
}

type MyLegacyPrinter

type MyLegacyPrinter struct{}

func (*MyLegacyPrinter) Print

func (l *MyLegacyPrinter) Print(s string) (newMsg string)

type PrinterAdapter

type PrinterAdapter struct {
	OldPrinter LegacyPrinter
	Msg        string
}

func (*PrinterAdapter) PrintStored

func (p *PrinterAdapter) PrintStored() (newMsg string)

Jump to

Keyboard shortcuts

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