prototype

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

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	White  = 1
	Black  = 2
	Yellow = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemInfoGetter

type ItemInfoGetter interface {
	GetInfo() string
}

type Shirt

type Shirt struct {
	Price float32
	SKU   string
	Color ShirtColor
}

func (*Shirt) GetInfo

func (s *Shirt) GetInfo() string

func (*Shirt) GetPrice

func (s *Shirt) GetPrice() float32

type ShirtCache

type ShirtCache struct {
}

func (*ShirtCache) GetClone

func (*ShirtCache) GetClone(color int) (ItemInfoGetter, error)

type ShirtCloner

type ShirtCloner interface {
	GetClone(color int) (ItemInfoGetter, error)
}

func GetShirtsCloner

func GetShirtsCloner() ShirtCloner

type ShirtColor

type ShirtColor byte

Jump to

Keyboard shortcuts

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