diff options
| author | Loyalsoldier <[email protected]> | 2025-02-01 15:13:39 +0800 |
|---|---|---|
| committer | Loyalsoldier <[email protected]> | 2025-02-01 15:27:23 +0800 |
| commit | fdab3dd2dea595f4aecd48bfd725b4bacf315b62 (patch) | |
| tree | 8d2d772a9415b74a7caa68ce5bc6a08f34fdf6b7 /plugin/plaintext | |
| parent | d9ccff71c634dae0ed85608d37b2d0c2d732fa1a (diff) | |
Chore: make names consistent202503270019202503200018202503130019202503060018202502270018202502200018202502130018202502060018202502010727
Diffstat (limited to 'plugin/plaintext')
| -rw-r--r-- | plugin/plaintext/clash_in.go | 12 | ||||
| -rw-r--r-- | plugin/plaintext/clash_out.go | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/plugin/plaintext/clash_in.go b/plugin/plaintext/clash_in.go index 9dc9ae2d..be77cc62 100644 --- a/plugin/plaintext/clash_in.go +++ b/plugin/plaintext/clash_in.go @@ -13,24 +13,24 @@ which make it possible to support more formats for the project. const ( TypeClashRuleSetClassicalIn = "clashRuleSetClassical" - DescClashClassicalIn = "Convert classical type of Clash RuleSet to other formats (just processing IP & CIDR lines)" + DescClashRuleSetClassicalIn = "Convert classical type of Clash RuleSet to other formats (just processing IP & CIDR lines)" TypeClashRuleSetIPCIDRIn = "clashRuleSet" - DescClashRuleSetIn = "Convert ipcidr type of Clash RuleSet to other formats" + DescClashRuleSetIPCIDRIn = "Convert ipcidr type of Clash RuleSet to other formats" ) func init() { lib.RegisterInputConfigCreator(TypeClashRuleSetClassicalIn, func(action lib.Action, data json.RawMessage) (lib.InputConverter, error) { - return newTextIn(TypeClashRuleSetClassicalIn, DescClashClassicalIn, action, data) + return newTextIn(TypeClashRuleSetClassicalIn, DescClashRuleSetClassicalIn, action, data) }) lib.RegisterInputConverter(TypeClashRuleSetClassicalIn, &TextIn{ - Description: DescClashClassicalIn, + Description: DescClashRuleSetClassicalIn, }) lib.RegisterInputConfigCreator(TypeClashRuleSetIPCIDRIn, func(action lib.Action, data json.RawMessage) (lib.InputConverter, error) { - return newTextIn(TypeClashRuleSetIPCIDRIn, DescClashRuleSetIn, action, data) + return newTextIn(TypeClashRuleSetIPCIDRIn, DescClashRuleSetIPCIDRIn, action, data) }) lib.RegisterInputConverter(TypeClashRuleSetIPCIDRIn, &TextIn{ - Description: DescClashRuleSetIn, + Description: DescClashRuleSetIPCIDRIn, }) } diff --git a/plugin/plaintext/clash_out.go b/plugin/plaintext/clash_out.go index 596a5384..e7a97f1b 100644 --- a/plugin/plaintext/clash_out.go +++ b/plugin/plaintext/clash_out.go @@ -13,24 +13,24 @@ which make it possible to support more formats for the project. const ( TypeClashRuleSetClassicalOut = "clashRuleSetClassical" - DescClashClassicalOut = "Convert data to classical type of Clash RuleSet" + DescClashRuleSetClassicalOut = "Convert data to classical type of Clash RuleSet" TypeClashRuleSetIPCIDROut = "clashRuleSet" - DescClashRuleSetOut = "Convert data to ipcidr type of Clash RuleSet" + DescClashRuleSetIPCIDROut = "Convert data to ipcidr type of Clash RuleSet" ) func init() { lib.RegisterOutputConfigCreator(TypeClashRuleSetClassicalOut, func(action lib.Action, data json.RawMessage) (lib.OutputConverter, error) { - return newTextOut(TypeClashRuleSetClassicalOut, DescClashClassicalOut, action, data) + return newTextOut(TypeClashRuleSetClassicalOut, DescClashRuleSetClassicalOut, action, data) }) lib.RegisterOutputConverter(TypeClashRuleSetClassicalOut, &TextOut{ - Description: DescClashClassicalOut, + Description: DescClashRuleSetClassicalOut, }) lib.RegisterOutputConfigCreator(TypeClashRuleSetIPCIDROut, func(action lib.Action, data json.RawMessage) (lib.OutputConverter, error) { - return newTextOut(TypeClashRuleSetIPCIDROut, DescClashRuleSetOut, action, data) + return newTextOut(TypeClashRuleSetIPCIDROut, DescClashRuleSetIPCIDROut, action, data) }) lib.RegisterOutputConverter(TypeClashRuleSetIPCIDROut, &TextOut{ - Description: DescClashRuleSetOut, + Description: DescClashRuleSetIPCIDROut, }) } |
