Add with_std_json build tag

This commit is contained in:
世界
2022-07-24 17:58:52 +08:00
parent fe8e984608
commit 67edc163cb
17 changed files with 55 additions and 25 deletions

View File

@@ -2,11 +2,11 @@ package clashapi
import (
"bytes"
"encoding/json"
"net/http"
"strconv"
"time"
"github.com/sagernet/sing-box/common/json"
"github.com/sagernet/sing-box/experimental/clashapi/trafficontrol"
"github.com/go-chi/chi/v5"

View File

@@ -11,6 +11,7 @@ import (
"time"
"github.com/sagernet/sing-box/adapter"
"github.com/sagernet/sing-box/common/json"
C "github.com/sagernet/sing-box/constant"
"github.com/sagernet/sing-box/experimental/clashapi/trafficontrol"
"github.com/sagernet/sing-box/log"
@@ -22,7 +23,6 @@ import (
"github.com/go-chi/chi/v5"
"github.com/go-chi/cors"
"github.com/go-chi/render"
"github.com/goccy/go-json"
"github.com/gorilla/websocket"
)