Migrate contentjson and badjson to library &

Add omitempty in format
This commit is contained in:
世界
2024-01-03 12:21:37 +08:00
parent e09a94bb9e
commit 38d28e0763
38 changed files with 48 additions and 508 deletions
+1 -1
View File
@@ -5,11 +5,11 @@ import (
"os"
"github.com/sagernet/sing-box/adapter"
"github.com/sagernet/sing-box/common/json"
"github.com/sagernet/sing-box/common/srs"
C "github.com/sagernet/sing-box/constant"
"github.com/sagernet/sing-box/option"
E "github.com/sagernet/sing/common/exceptions"
"github.com/sagernet/sing/common/json"
)
var _ adapter.RuleSet = (*LocalRuleSet)(nil)
+1 -1
View File
@@ -10,11 +10,11 @@ import (
"time"
"github.com/sagernet/sing-box/adapter"
"github.com/sagernet/sing-box/common/json"
"github.com/sagernet/sing-box/common/srs"
C "github.com/sagernet/sing-box/constant"
"github.com/sagernet/sing-box/option"
E "github.com/sagernet/sing/common/exceptions"
"github.com/sagernet/sing/common/json"
"github.com/sagernet/sing/common/logger"
M "github.com/sagernet/sing/common/metadata"
N "github.com/sagernet/sing/common/network"