From e5e41dd4da01493fca552b8bb2adb925cda602a2 Mon Sep 17 00:00:00 2001 From: CyberRoute Date: Fri, 3 Nov 2023 21:46:42 +0100 Subject: [PATCH] refactoring main.go --- pkg/driver/driver.go | 2 +- pkg/repository/dbrepo/dbrepo.go | 2 +- pkg/repository/dbrepo/postgres.go | 2 +- pkg/repository/repository.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/driver/driver.go b/pkg/driver/driver.go index 4a90bb4..f540855 100644 --- a/pkg/driver/driver.go +++ b/pkg/driver/driver.go @@ -58,4 +58,4 @@ func NewDatabase(dsn string) (*sql.DB, error) { return nil, err } return db, nil -} \ No newline at end of file +} diff --git a/pkg/repository/dbrepo/dbrepo.go b/pkg/repository/dbrepo/dbrepo.go index 0c44b80..b5755ba 100644 --- a/pkg/repository/dbrepo/dbrepo.go +++ b/pkg/repository/dbrepo/dbrepo.go @@ -18,4 +18,4 @@ func NewPostgresRepo(conn *sql.DB, a *config.AppConfig) repository.DatabaseRepo App: a, DB: conn, } -} \ No newline at end of file +} diff --git a/pkg/repository/dbrepo/postgres.go b/pkg/repository/dbrepo/postgres.go index 4d194f9..ef9df03 100644 --- a/pkg/repository/dbrepo/postgres.go +++ b/pkg/repository/dbrepo/postgres.go @@ -2,4 +2,4 @@ package dbrepo func (m *postgresDBRepo) AllUrls() bool { return true -} \ No newline at end of file +} diff --git a/pkg/repository/repository.go b/pkg/repository/repository.go index 00c5259..f8fb57d 100644 --- a/pkg/repository/repository.go +++ b/pkg/repository/repository.go @@ -2,4 +2,4 @@ package repository type DatabaseRepo interface { AllUrls() bool -} \ No newline at end of file +}