Skip to content

Instantly share code, notes, and snippets.

@AntonStoeckl
Created June 3, 2022 07:52
Show Gist options
  • Save AntonStoeckl/d7fabc4dd556ef8d51af434bcd57f111 to your computer and use it in GitHub Desktop.
Save AntonStoeckl/d7fabc4dd556ef8d51af434bcd57f111 to your computer and use it in GitHub Desktop.
Example for Blog Post "Hexagonal Architecture: Structuring a project and the influence of granularity V2
# 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