package
1.3.2
Repository: https://github.com/go-leo/design-pattern.git
Documentation: pkg.go.dev

# Functions

Chain decorates the given Command with all middlewares.
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Handler is a command handler that to encapsulate a unit of processing work to be performed.
Middleware allows us to write something like decorators to Command.
No description provided by the author
RedoHandler redo a Command.
UndoHandler undo a Command.

# Type aliases

The CommandFunc type is an adapter to allow the use of ordinary functions as Command.
The MiddlewareFunc type is an adapter to allow the use of ordinary functions as Middleware.
The RedoCommandFunc type is an adapter to allow the use of ordinary functions as RedoCommand.
The UndoCommandFunc type is an adapter to allow the use of ordinary functions as UndoCommand.