prototype

package
v0.0.0-...-9d7b045 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	White = 1
	Black = 2
	Blue  = 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 (i *Shirt) GetPrice() float32

type ShirtCloner

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

func GetShirtsCloner

func GetShirtsCloner() ShirtCloner

type ShirtColor

type ShirtColor byte

type ShirtsCache

type ShirtsCache struct{}

func (*ShirtsCache) GetClone

func (s *ShirtsCache) GetClone(m int) (ItemInfoGetter, error)

Jump to

Keyboard shortcuts

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