chore: 调整目录与包名一致

This commit is contained in:
MetaCubeX
2022-06-04 03:25:33 +08:00
parent 50bb620aa1
commit cb517cb529
29 changed files with 13 additions and 13 deletions

35
rules/common/final.go Normal file
View File

@@ -0,0 +1,35 @@
package common
import (
C "github.com/Dreamacro/clash/constant"
)
type Match struct {
*Base
adapter string
}
func (f *Match) RuleType() C.RuleType {
return C.MATCH
}
func (f *Match) Match(metadata *C.Metadata) bool {
return true
}
func (f *Match) Adapter() string {
return f.adapter
}
func (f *Match) Payload() string {
return ""
}
func NewMatch(adapter string) *Match {
return &Match{
Base: &Base{},
adapter: adapter,
}
}
var _ C.Rule = (*Match)(nil)