Skip to content

Instantly share code, notes, and snippets.

@AntonStoeckl
Created May 20, 2022 10:57
Show Gist options
  • Save AntonStoeckl/239d307fe92a13e333c463b305ed3687 to your computer and use it in GitHub Desktop.
Save AntonStoeckl/239d307fe92a13e333c463b305ed3687 to your computer and use it in GitHub Desktop.
Example for Blog Post "Hexagonal Architecture: Structuring a project and the influence of granularity"
# With function types instead of interfaces all ports are automatically fine-grained
type ForSelectingDecks func(command SelectDeckCommand) error
type ForUnselectingDecks func(command UnselectDeckCommand) error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment