mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
clean: removed use of "." in imports
This commit is contained in:
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user