Created
December 10, 2021 04:50
-
-
Save manakuro/67e4220e19a237a5da8082024ad5bc78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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