diff --git a/internal/actions/comment.go b/internal/actions/comment.go index d637297..ce7633e 100644 --- a/internal/actions/comment.go +++ b/internal/actions/comment.go @@ -9,9 +9,9 @@ import ( "github/fthvgb1/wp-go/helper" cache2 "github/fthvgb1/wp-go/internal/cache" "github/fthvgb1/wp-go/internal/config" + "github/fthvgb1/wp-go/internal/logs" + "github/fthvgb1/wp-go/internal/mail" "github/fthvgb1/wp-go/internal/wpconfig" - "github/fthvgb1/wp-go/logs" - "github/fthvgb1/wp-go/mail" "io" "net/http" "net/url" diff --git a/internal/actions/detail.go b/internal/actions/detail.go index 6f3b9c2..ba1a410 100644 --- a/internal/actions/detail.go +++ b/internal/actions/detail.go @@ -6,10 +6,10 @@ import ( "github.com/gin-gonic/gin" "github/fthvgb1/wp-go/helper" "github/fthvgb1/wp-go/internal/cache" + "github/fthvgb1/wp-go/internal/logs" "github/fthvgb1/wp-go/internal/models" "github/fthvgb1/wp-go/internal/plugins" "github/fthvgb1/wp-go/internal/wpconfig" - "github/fthvgb1/wp-go/logs" "math/rand" "net/http" "net/url" diff --git a/internal/actions/feed.go b/internal/actions/feed.go index c028369..bcff47d 100644 --- a/internal/actions/feed.go +++ b/internal/actions/feed.go @@ -6,10 +6,10 @@ import ( "github/fthvgb1/wp-go/cache" "github/fthvgb1/wp-go/helper" cache2 "github/fthvgb1/wp-go/internal/cache" + "github/fthvgb1/wp-go/internal/logs" "github/fthvgb1/wp-go/internal/models" "github/fthvgb1/wp-go/internal/plugins" "github/fthvgb1/wp-go/internal/wpconfig" - "github/fthvgb1/wp-go/logs" "github/fthvgb1/wp-go/plugin/digest" "github/fthvgb1/wp-go/rss2" "net/http" diff --git a/internal/cache/cache.go b/internal/cache/cache.go index 7ca22bc..5e020bd 100644 --- a/internal/cache/cache.go +++ b/internal/cache/cache.go @@ -5,8 +5,8 @@ import ( "github/fthvgb1/wp-go/cache" "github/fthvgb1/wp-go/internal/config" dao "github/fthvgb1/wp-go/internal/dao" + "github/fthvgb1/wp-go/internal/logs" "github/fthvgb1/wp-go/internal/models" - "github/fthvgb1/wp-go/logs" "sync" "time" ) diff --git a/internal/cache/comments.go b/internal/cache/comments.go index 06fd0c4..c22b9bf 100644 --- a/internal/cache/comments.go +++ b/internal/cache/comments.go @@ -2,8 +2,8 @@ package cache import ( "context" + "github/fthvgb1/wp-go/internal/logs" "github/fthvgb1/wp-go/internal/models" - "github/fthvgb1/wp-go/logs" "time" ) diff --git a/internal/cache/posts.go b/internal/cache/posts.go index b85299b..f97809c 100644 --- a/internal/cache/posts.go +++ b/internal/cache/posts.go @@ -5,8 +5,8 @@ import ( "fmt" "github.com/gin-gonic/gin" "github/fthvgb1/wp-go/helper" + "github/fthvgb1/wp-go/internal/logs" "github/fthvgb1/wp-go/internal/models" - "github/fthvgb1/wp-go/logs" "time" ) diff --git a/internal/cache/users.go b/internal/cache/users.go index f7f9b5f..a6fe103 100644 --- a/internal/cache/users.go +++ b/internal/cache/users.go @@ -2,8 +2,8 @@ package cache import ( "context" + "github/fthvgb1/wp-go/internal/logs" "github/fthvgb1/wp-go/internal/models" - "github/fthvgb1/wp-go/logs" "github/fthvgb1/wp-go/model" "time" ) diff --git a/internal/dao/postmeta.go b/internal/dao/postmeta.go index 1995f52..9683ee4 100644 --- a/internal/dao/postmeta.go +++ b/internal/dao/postmeta.go @@ -4,8 +4,8 @@ import ( "context" "github.com/leeqvip/gophp" "github/fthvgb1/wp-go/helper" + "github/fthvgb1/wp-go/internal/logs" "github/fthvgb1/wp-go/internal/models" - "github/fthvgb1/wp-go/logs" "github/fthvgb1/wp-go/model" "strconv" ) diff --git a/logs/log.go b/internal/logs/log.go similarity index 100% rename from logs/log.go rename to internal/logs/log.go diff --git a/mail/mail.go b/internal/mail/mail.go similarity index 100% rename from mail/mail.go rename to internal/mail/mail.go diff --git a/mail/mail_test.go b/internal/mail/mail_test.go similarity index 100% rename from mail/mail_test.go rename to internal/mail/mail_test.go diff --git a/internal/middleware/sendmail.go b/internal/middleware/sendmail.go index 884c256..b644b25 100644 --- a/internal/middleware/sendmail.go +++ b/internal/middleware/sendmail.go @@ -5,9 +5,9 @@ import ( "fmt" "github.com/gin-gonic/gin" "github/fthvgb1/wp-go/internal/config" + "github/fthvgb1/wp-go/internal/logs" + "github/fthvgb1/wp-go/internal/mail" "github/fthvgb1/wp-go/internal/wpconfig" - "github/fthvgb1/wp-go/logs" - "github/fthvgb1/wp-go/mail" "io" "io/ioutil" "net/http" diff --git a/main.go b/main.go index a979eb3..a91e225 100644 --- a/main.go +++ b/main.go @@ -7,11 +7,11 @@ import ( "github/fthvgb1/wp-go/internal/cache" "github/fthvgb1/wp-go/internal/config" "github/fthvgb1/wp-go/internal/db" + "github/fthvgb1/wp-go/internal/logs" + "github/fthvgb1/wp-go/internal/mail" "github/fthvgb1/wp-go/internal/plugins" "github/fthvgb1/wp-go/internal/route" "github/fthvgb1/wp-go/internal/wpconfig" - "github/fthvgb1/wp-go/logs" - "github/fthvgb1/wp-go/mail" "github/fthvgb1/wp-go/model" "log" "math/rand"