chore: 调整目录与包名一致

This commit is contained in:
gVisor bot 2022-06-04 03:25:33 +08:00
parent a276b17246
commit d072d06e49
29 changed files with 13 additions and 13 deletions

View file

@ -16,8 +16,8 @@ import (
"time" "time"
"github.com/Dreamacro/clash/common/utils" "github.com/Dreamacro/clash/common/utils"
R "github.com/Dreamacro/clash/rule" R "github.com/Dreamacro/clash/rules"
RP "github.com/Dreamacro/clash/rule/provider" RP "github.com/Dreamacro/clash/rules/provider"
"github.com/Dreamacro/clash/adapter" "github.com/Dreamacro/clash/adapter"
"github.com/Dreamacro/clash/adapter/outbound" "github.com/Dreamacro/clash/adapter/outbound"

View file

@ -3,7 +3,7 @@ package logic
import ( import (
"fmt" "fmt"
C "github.com/Dreamacro/clash/constant" C "github.com/Dreamacro/clash/constant"
"github.com/Dreamacro/clash/rule/common" "github.com/Dreamacro/clash/rules/common"
"strings" "strings"
) )

View file

@ -3,7 +3,7 @@ package logic
import ( import (
"fmt" "fmt"
C "github.com/Dreamacro/clash/constant" C "github.com/Dreamacro/clash/constant"
"github.com/Dreamacro/clash/rule/common" "github.com/Dreamacro/clash/rules/common"
) )
type NOT struct { type NOT struct {

View file

@ -3,7 +3,7 @@ package logic
import ( import (
"fmt" "fmt"
C "github.com/Dreamacro/clash/constant" C "github.com/Dreamacro/clash/constant"
"github.com/Dreamacro/clash/rule/common" "github.com/Dreamacro/clash/rules/common"
"strings" "strings"
) )

View file

@ -2,10 +2,10 @@ package rules
import ( import (
C "github.com/Dreamacro/clash/constant" C "github.com/Dreamacro/clash/constant"
RC "github.com/Dreamacro/clash/rule/common" RC "github.com/Dreamacro/clash/rules/common"
"github.com/Dreamacro/clash/rule/logic" "github.com/Dreamacro/clash/rules/logic"
RP "github.com/Dreamacro/clash/rule/provider" RP "github.com/Dreamacro/clash/rules/provider"
"github.com/Dreamacro/clash/rule/ruleparser" "github.com/Dreamacro/clash/rules/ruleparser"
) )
func ParseRule(tp, payload, target string, params []string) (parsed C.Rule, parseErr error) { func ParseRule(tp, payload, target string, params []string) (parsed C.Rule, parseErr error) {

View file

@ -6,8 +6,8 @@ import (
"github.com/Dreamacro/clash/common/structure" "github.com/Dreamacro/clash/common/structure"
C "github.com/Dreamacro/clash/constant" C "github.com/Dreamacro/clash/constant"
P "github.com/Dreamacro/clash/constant/provider" P "github.com/Dreamacro/clash/constant/provider"
RC "github.com/Dreamacro/clash/rule/common" RC "github.com/Dreamacro/clash/rules/common"
"github.com/Dreamacro/clash/rule/ruleparser" "github.com/Dreamacro/clash/rules/ruleparser"
"time" "time"
) )

View file

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
C "github.com/Dreamacro/clash/constant" C "github.com/Dreamacro/clash/constant"
P "github.com/Dreamacro/clash/constant/provider" P "github.com/Dreamacro/clash/constant/provider"
"github.com/Dreamacro/clash/rule/common" "github.com/Dreamacro/clash/rules/common"
) )
type RuleSet struct { type RuleSet struct {

View file

@ -3,7 +3,7 @@ package ruleparser
import ( import (
"fmt" "fmt"
C "github.com/Dreamacro/clash/constant" C "github.com/Dreamacro/clash/constant"
RC "github.com/Dreamacro/clash/rule/common" RC "github.com/Dreamacro/clash/rules/common"
) )
func ParseSameRule(tp, payload, target string, params []string) (parsed C.Rule, parseErr error) { func ParseSameRule(tp, payload, target string, params []string) (parsed C.Rule, parseErr error) {