decorator

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IngredientAdder

type IngredientAdder interface {
	AddIngredient() (string, error)
}

type Meat

type Meat struct {
	Ingredient IngredientAdder
}

func (*Meat) AddIngredient

func (m *Meat) AddIngredient() (string, error)

type Onion

type Onion struct {
	Ingredient IngredientAdder
}

func (*Onion) AddIngredient

func (o *Onion) AddIngredient() (string, error)

type PizzaDecorator

type PizzaDecorator struct {
	Ingredient IngredientAdder
}

func (*PizzaDecorator) AddIngredient

func (p *PizzaDecorator) AddIngredient() (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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