structural

package
v0.0.0-...-eb200bf Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 1 Imported by: 0

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 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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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