Command

package
v0.0.0-...-f967d7f Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test

func Test()

Types

type Command

type Command interface {
	Do()
}

type Computer

type Computer struct {
}

invoker

func (*Computer) Execute

func (c *Computer) Execute(command Command)

type Pen

type Pen struct {
}

receiver

func (Pen) Write

func (p Pen) Write(text string)

type PenWriteCommand

type PenWriteCommand struct {
	// contains filtered or unexported fields
}

command

func (PenWriteCommand) Do

func (pwc PenWriteCommand) Do()

Jump to

Keyboard shortcuts

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