mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-07-04 20:02:34 +08:00
🎨 Refactor package for public import
This commit is contained in:
@ -2,9 +2,10 @@ package handler
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"sub2clash/config"
|
||||
"sub2clash/model"
|
||||
"sub2clash/validator"
|
||||
|
||||
"github.com/nitezs/sub2clash/config"
|
||||
"github.com/nitezs/sub2clash/model"
|
||||
"github.com/nitezs/sub2clash/validator"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"gopkg.in/yaml.v3"
|
||||
|
@ -9,11 +9,12 @@ import (
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sub2clash/common"
|
||||
"sub2clash/logger"
|
||||
"sub2clash/model"
|
||||
"sub2clash/parser"
|
||||
"sub2clash/validator"
|
||||
|
||||
"github.com/nitezs/sub2clash/common"
|
||||
"github.com/nitezs/sub2clash/logger"
|
||||
"github.com/nitezs/sub2clash/model"
|
||||
"github.com/nitezs/sub2clash/parser"
|
||||
"github.com/nitezs/sub2clash/validator"
|
||||
|
||||
"go.uber.org/zap"
|
||||
"gopkg.in/yaml.v3"
|
||||
|
@ -3,9 +3,10 @@ package handler
|
||||
import (
|
||||
_ "embed"
|
||||
"net/http"
|
||||
"sub2clash/config"
|
||||
"sub2clash/model"
|
||||
"sub2clash/validator"
|
||||
|
||||
"github.com/nitezs/sub2clash/config"
|
||||
"github.com/nitezs/sub2clash/model"
|
||||
"github.com/nitezs/sub2clash/validator"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"gopkg.in/yaml.v3"
|
||||
|
@ -7,11 +7,11 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"sub2clash/common"
|
||||
"sub2clash/common/database"
|
||||
"sub2clash/config"
|
||||
"sub2clash/model"
|
||||
"sub2clash/validator"
|
||||
"github.com/nitezs/sub2clash/common"
|
||||
"github.com/nitezs/sub2clash/common/database"
|
||||
"github.com/nitezs/sub2clash/config"
|
||||
"github.com/nitezs/sub2clash/model"
|
||||
"github.com/nitezs/sub2clash/validator"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
@ -5,9 +5,10 @@ import (
|
||||
"html/template"
|
||||
"log"
|
||||
"net/http"
|
||||
"sub2clash/api/handler"
|
||||
"sub2clash/constant"
|
||||
"sub2clash/middleware"
|
||||
|
||||
"github.com/nitezs/sub2clash/api/handler"
|
||||
"github.com/nitezs/sub2clash/constant"
|
||||
"github.com/nitezs/sub2clash/middleware"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
Reference in New Issue
Block a user