Skip to content

Instantly share code, notes, and snippets.

@kamal-kambe
Created July 31, 2019 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamal-kambe/d4c827926cf9a2ac85ef0bc5a45b16c5 to your computer and use it in GitHub Desktop.
Save kamal-kambe/d4c827926cf9a2ac85ef0bc5a45b16c5 to your computer and use it in GitHub Desktop.
package service
import "encoding/json"
type BaseRepository interface {
GetRows(models []string) json.RawMessage
}
type StorageFactory interface {
NewBaseRepository() BaseRepository
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment