Created
September 30, 2019 16:31
-
-
Save phuctm97/6030aaf817ee25870c69798ba0e0b65c to your computer and use it in GitHub Desktop.
Go RESTful Series
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
package users | |
// UserRepository abstracts accesses to users-related data. | |
type UserRepository interface { | |
ExistsByUsername(string) (bool, error) | |
ExistsByEmail(string) (bool, error) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment