Documentation ¶
Overview ¶
Package command provides a generic interface for handling commands.
It includes the `IHandler` interface for processing commands of any type and returning results of any type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IHandler ¶
type IHandler[Command any, Result any] interface { // Handle processes the provided command and returns the result or an error. Handle(command Command) (Result, error) }
IHandler defines a generic interface for handling commands.
Type Parameters: - Command: The type of the command to be handled. - Result: The type of the result returned after handling the command.
Click to show internal directories.
Click to hide internal directories.