mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-10-26 01:01:35 +00:00
🎨 Refactor package for public import
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"errors"
|
||||
"path/filepath"
|
||||
|
||||
"sub2clash/model"
|
||||
"github.com/nitezs/sub2clash/model"
|
||||
|
||||
"go.etcd.io/bbolt"
|
||||
)
|
||||
|
||||
@@ -3,8 +3,9 @@ package common
|
||||
import (
|
||||
"errors"
|
||||
"net/http"
|
||||
"sub2clash/config"
|
||||
"time"
|
||||
|
||||
"github.com/nitezs/sub2clash/config"
|
||||
)
|
||||
|
||||
type GetConfig struct {
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,8 @@ package common
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"sub2clash/model"
|
||||
|
||||
"github.com/nitezs/sub2clash/model"
|
||||
)
|
||||
|
||||
func PrependRuleProvider(
|
||||
|
||||
@@ -8,9 +8,10 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sub2clash/config"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/nitezs/sub2clash/config"
|
||||
)
|
||||
|
||||
var subsDir = "subs"
|
||||
|
||||
@@ -3,7 +3,8 @@ package common
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sub2clash/config"
|
||||
|
||||
"github.com/nitezs/sub2clash/config"
|
||||
)
|
||||
|
||||
func writeTemplate(path string, template string) error {
|
||||
|
||||
Reference in New Issue
Block a user