Last active
January 18, 2021 16:05
-
-
Save marioarizaj/22be8271b65b9e97c1a596207920f050 to your computer and use it in GitHub Desktop.
This file contains 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 StorageIFace interface { | |
CreateAuthor(author *models.Author) (*models.Author, error) | |
GetAllAuthors() ([]models.Author, error) | |
CreateArticle(article *models.Article) (*models.Article, error) | |
GetAllArticles() ([]models.Article, error) | |
} | |
// Code down here does not change |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment