fix: change function names

This commit is contained in:
Elton Minetto
2020-06-30 13:19:03 -03:00
parent 74d7384f47
commit 4c6b43b04d
21 changed files with 234 additions and 218 deletions
+3 -3
View File
@@ -40,9 +40,9 @@ func main() {
log.Fatal(err.Error())
}
defer db.Close()
repo := book.NewMySQLRepoRepository(db)
service := book.NewRepository(repo)
all, err := service.Search(query)
repo := book.NewMySQLRepository(db)
manager := book.NewManager(repo)
all, err := manager.Search(query)
if err != nil {
log.Fatal(err)
}