Skip to content

Instantly share code, notes, and snippets.

@fwojciec
Created January 20, 2020 16:23
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 fwojciec/b04d0ec8423a8fadab2eff066ef50b88 to your computer and use it in GitHub Desktop.
Save fwojciec/b04d0ec8423a8fadab2eff066ef50b88 to your computer and use it in GitHub Desktop.
func newLoaders(ctx context.Context, repo pg.Repository) *Loaders {
return &Loaders{
AgentByAuthorID: newAgentByAuthorID(ctx, repo),
AuthorsByAgentID: newAuthorsByAgentID(ctx, repo),
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment