Created
November 11, 2020 19:56
-
-
Save Israel-Miles/9a1c5e200bc4cc22e6d6bb87000099c3 to your computer and use it in GitHub Desktop.
command-pattern
This file contains hidden or 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 onCommand struct { | |
device device | |
} | |
func (c *onCommand) execute() { | |
c.device.on() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment