1
0
mirror of https://github.com/bestnite/sub2clash.git synced 2026-05-04 07:46:08 +00:00

🎨 Refactor package for public import

This commit is contained in:
2024-09-17 13:10:13 +08:00
parent 3cfa4bdf24
commit e504a6cca4
21 changed files with 67 additions and 49 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"errors"
"path/filepath"
"sub2clash/model"
"github.com/nitezs/sub2clash/model"
"go.etcd.io/bbolt"
)
+2 -1
View File
@@ -3,8 +3,9 @@ package common
import (
"errors"
"net/http"
"sub2clash/config"
"time"
"github.com/nitezs/sub2clash/config"
)
type GetConfig struct {
+5 -4
View File
@@ -2,10 +2,11 @@ package common
import (
"strings"
"sub2clash/constant"
"sub2clash/logger"
"sub2clash/model"
"sub2clash/parser"
"github.com/nitezs/sub2clash/constant"
"github.com/nitezs/sub2clash/logger"
"github.com/nitezs/sub2clash/model"
"github.com/nitezs/sub2clash/parser"
"go.uber.org/zap"
)
+2 -1
View File
@@ -3,7 +3,8 @@ package common
import (
"fmt"
"strings"
"sub2clash/model"
"github.com/nitezs/sub2clash/model"
)
func PrependRuleProvider(
+2 -1
View File
@@ -8,9 +8,10 @@ import (
"net/http"
"os"
"path/filepath"
"sub2clash/config"
"sync"
"time"
"github.com/nitezs/sub2clash/config"
)
var subsDir = "subs"
+2 -1
View File
@@ -3,7 +3,8 @@ package common
import (
"os"
"path/filepath"
"sub2clash/config"
"github.com/nitezs/sub2clash/config"
)
func writeTemplate(path string, template string) error {