Created
November 11, 2020 20:00
-
-
Save Israel-Miles/eed8dca591113f0bc4605c38b6aef423 to your computer and use it in GitHub Desktop.
command-pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
type offCommand struct { | |
device device | |
} | |
func (c *offCommand) execute() { | |
c.device.off() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment