Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Blog is the main business process(es).
type Blog interface {
// CreateArticle creates an article then publish it.
CreateArticle(article Article) error
// GetArticles retrieves an article based on its id.
GetArticle(id int) (Article, error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.