Skip to content

Instantly share code, notes, and snippets.

@manakuro
Created December 10, 2021 04:50
Show Gist options
  • Save manakuro/67e4220e19a237a5da8082024ad5bc78 to your computer and use it in GitHub Desktop.
Save manakuro/67e4220e19a237a5da8082024ad5bc78 to your computer and use it in GitHub Desktop.
type User interface {
Get(ctx context.Context, id *model.ID) (*model.User, error)
}
...
func (u *user) Get(ctx context.Context, id *model.ID) (*model.User, error) {
return u.userRepository.Get(ctx, id)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment