Created
August 31, 2021 05:28
-
-
Save percybolmer/3baa346fd04755b9c5c591ec980c5708 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
// CustomerRepository is a interface that defines the rules around what a customer repository | |
// Has to be able to perform | |
type CustomerRepository interface { | |
Get(uuid.UUID) (Customer, error) | |
Add(Customer) error | |
Update(Customer) error | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment