Last active
August 1, 2019 06:04
-
-
Save kamal-kambe/58f23be66b22218efcc97e4bb265655a to your computer and use it in GitHub Desktop.
Revisions
-
kamal-kambe revised this gist
Aug 1, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package sql import ( "github.com/jinzhu/gorm" "sample-app/service" ) type storageFactory struct { -
kamal-kambe created this gist
Aug 1, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ 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) }