Versions in this module Expand all Collapse all v2 v2.0.2 Jun 9, 2023 Changes in this version + func Action() + func Main() + type AModuleAPI interface + TestA func() string + func NewAModuleAPI() AModuleAPI + type API interface + Test func() string + func NewAPI() API + type AddDecorator struct + func (d *AddDecorator) Calc() int + type BModuleAPI interface + TestB func() string + func NewBModuleAPI() BModuleAPI + type BridgeComputer interface + Print func() + SetPrinter func(Printer) + type Client struct + func (c *Client) InsertLightningConnectorIntoComputer(com Computer) + type Component interface + Calc func() int + func WrapAddDecorator(c Component, num int) Component + func WrapMulDecorator(c Component, num int) Component + type Computer interface + InsertIntoLightningPort func() + type ConcreteComponent struct + func (*ConcreteComponent) Calc() int + type Epson struct + func (p *Epson) PrintFile() + type Hp struct + func (p *Hp) PrintFile() + type ImageFlyweight struct + func NewImageFlyweight(filename string) *ImageFlyweight + func (i *ImageFlyweight) Data() string + type ImageFlyweightFactory struct + func GetImageFlyweightFactory() *ImageFlyweightFactory + func (f *ImageFlyweightFactory) Get(filename string) *ImageFlyweight + type Mac struct + func (m *Mac) Print() + func (m *Mac) SetPrinter(p Printer) + type MulDecorator struct + func (d *MulDecorator) Calc() int + type Printer interface + PrintFile func() + type Proxy struct + func (p Proxy) Do() string + type RealSubject struct + func (RealSubject) Do() string + type Subject interface + Do func() string + type Windows struct + type WindowsAdapter struct + func (w *WindowsAdapter) InsertIntoLightningPort() Other modules containing this package github.com/aronlt/toolkit