Skip to content

Instantly share code, notes, and snippets.

@indrasaputra
Last active May 22, 2018 23:55
Show Gist options
  • Save indrasaputra/00916d951dcc9513c552a576cd8d8e5f to your computer and use it in GitHub Desktop.
Save indrasaputra/00916d951dcc9513c552a576cd8d8e5f to your computer and use it in GitHub Desktop.
// 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