From fdab3dd2dea595f4aecd48bfd725b4bacf315b62 Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Sat, 1 Feb 2025 15:13:39 +0800 Subject: Chore: make names consistent --- plugin/plaintext/clash_in.go | 12 ++++++------ plugin/plaintext/clash_out.go | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'plugin/plaintext') 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, }) } -- cgit v1.3.1