Created
May 20, 2022 10:57
-
-
Save AntonStoeckl/edf7e28d8993c3c960197a501b68e377 to your computer and use it in GitHub Desktop.
Example for Blog Post "Hexagonal Architecture: Structuring a project and the influence of granularity"
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
# the coarse-grained version | |
type ForSelectingDecks interface { | |
Select(command SelectDeckCommand) error | |
Unselect(command UnselectDeckCommand) error | |
} | |
# the fine-grained version | |
type ForSelectingDecks interface { | |
Select(command SelectDeckCommand) error | |
} | |
type ForUnselectingDecks interface { | |
Unselect(command UnselectDeckCommand) error | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment