CommandPattern

package module
v0.0.0-...-12f7594 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ON  = LightState("on")
	OFF = LightState("off")
)

Variables

This section is empty.

Functions

func Executor

func Executor(cmd Command)

func Main

func Main()

Types

type Command

type Command interface {
	// contains filtered or unexported methods
}

type Light

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

type LightOffCommand

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

type LightOnCommand

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

type LightState

type LightState string

Jump to

Keyboard shortcuts

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