factorymethod

package
v0.0.0-...-7dcde51 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button interface {
	Press() string
}

type ButtonFactory

type ButtonFactory interface {
	New() Button
}

type CircularButton

type CircularButton struct{}

func (CircularButton) Press

func (b CircularButton) Press() string

type CircularButtonFactory

type CircularButtonFactory struct{}

func (CircularButtonFactory) New

func (f CircularButtonFactory) New() Button

type SquareButton

type SquareButton struct{}

func (SquareButton) Press

func (b SquareButton) Press() string

type SquareButtonFactory

type SquareButtonFactory struct{}

func (SquareButtonFactory) New

func (f SquareButtonFactory) New() Button

Jump to

Keyboard shortcuts

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