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
+4 -4
View File
@@ -1,11 +1,11 @@
package gateways
import (
. "GohCMS2/domain/article"
"GohCMS2/domain/article"
)
type IArticleRepository interface {
Get(id uint32) (Article, error)
GetAll() []Article
Create(article Article) (Article, error)
Get(id uint32) (article.Article, error)
GetAll() []article.Article
Create(article article.Article) (article.Article, error)
}
+5 -5
View File
@@ -1,10 +1,10 @@
package gateways
import . "GohCMS2/domain/user"
import "GohCMS2/domain/user"
type IUserRepository interface {
Get(id uint32) (User, error)
GetByUsername(username string) (User, error)
GetAll() []User
Create(user User) (User, error)
Get(id uint32) (user.User, error)
GetByUsername(username string) (user.User, error)
GetAll() []user.User
Create(user user.User) (user.User, error)
}