Skip to content

Instantly share code, notes, and snippets.

@kamal-kambe
Last active August 1, 2019 06:04
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/58f23be66b22218efcc97e4bb265655a to your computer and use it in GitHub Desktop.
Save kamal-kambe/58f23be66b22218efcc97e4bb265655a to your computer and use it in GitHub Desktop.
package sql
import (
"github.com/jinzhu/gorm"
"sample-app/service"
)
type storageFactory struct {
Db *gorm.DB
}
func (sf *storageFactory) NewBaseRepository() service.BaseRepository {
return NewBaseRepository(sf.Db)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment