Skip to content

Instantly share code, notes, and snippets.

@shanev
Created January 21, 2019 19:42
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 shanev/90ee98c22ca956ea153ca1e7e5c33d65 to your computer and use it in GitHub Desktop.
Save shanev/90ee98c22ca956ea153ca1e7e5c33d65 to your computer and use it in GitHub Desktop.
// GenericMutations write to the database
type GenericMutations interface {
Add(model ...interface{}) error
RegisterModel(model interface{}) error
Remove(model interface{}) error
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment