Glossary: Software Design Patterns in Go
Command
Also written: command pattern, commands
A pattern that turns an action into an object that knows how to do it (`Run`) and reverse it (`Undo`). Stored on an undo stack, commands let the cart page offer an Undo button.