clean: removed use of "." in imports

This commit is contained in:
Florian Sylvain
2023-08-13 02:48:19 +02:00
parent 2525a64d0a
commit c6bd7731cc
14 changed files with 82 additions and 75 deletions
@@ -3,7 +3,7 @@ package gateways
import (
entity "GohCMS2/adapters/secondary/gateways/models"
domain "GohCMS2/domain/article"
. "GohCMS2/domain/gateways"
"GohCMS2/domain/gateways"
"gorm.io/gorm"
)
@@ -65,4 +65,4 @@ func (a *ArticleRepository) GetAll() []domain.Article {
return domainArticles
}
var _ IArticleRepository = &ArticleRepository{}
var _ gateways.IArticleRepository = &ArticleRepository{}
@@ -1,7 +1,7 @@
package gateways
import (
. "GohCMS2/domain/gateways"
"GohCMS2/domain/gateways"
"bytes"
"embed"
"html/template"
@@ -29,4 +29,4 @@ func (p *PageRepository) Get(name string, data interface{}) ([]byte, error) {
return processedHTML.Bytes(), nil
}
var _ IPageRepository = &PageRepository{}
var _ gateways.IPageRepository = &PageRepository{}
@@ -2,7 +2,7 @@ package gateways
import (
entity "GohCMS2/adapters/secondary/gateways/models"
. "GohCMS2/domain/gateways"
"GohCMS2/domain/gateways"
domain "GohCMS2/domain/user"
"golang.org/x/crypto/bcrypt"
"gorm.io/gorm"
@@ -77,4 +77,4 @@ func (u *UserRepository) GetByUsername(username string) (domain.User, error) {
return mapUserToDomain(user), nil
}
var _ IUserRepository = &UserRepository{}
var _ gateways.IUserRepository = &UserRepository{}