Skip to content

Instantly share code, notes, and snippets.

@mkock
Created October 2, 2021 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkock/cce3e6f79968435902172c24e23d5d24 to your computer and use it in GitHub Desktop.
Save mkock/cce3e6f79968435902172c24e23d5d24 to your computer and use it in GitHub Desktop.
type EntityLoader interface {
LoadUser(id uint32) (User, error)
LoadAddress(id uint32) (Address, error)
LoadPurchaseOrder(id uint32) (PurchaseOrder, error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment