Update gci format

This commit is contained in:
世界
2022-07-06 15:01:09 +08:00
parent 46f28a9de9
commit 3696e81eb4
55 changed files with 194 additions and 124 deletions

View File

@@ -3,8 +3,9 @@ package option
import (
"bytes"
"github.com/goccy/go-json"
"github.com/sagernet/sing/common"
"github.com/goccy/go-json"
)
type _Options struct {

View File

@@ -1,11 +1,13 @@
package option
import (
"github.com/goccy/go-json"
C "github.com/sagernet/sing-box/constant"
"github.com/sagernet/sing/common"
"github.com/sagernet/sing/common/auth"
E "github.com/sagernet/sing/common/exceptions"
C "github.com/sagernet/sing-box/constant"
"github.com/goccy/go-json"
)
type _Inbound struct {

View File

@@ -3,10 +3,12 @@ package option
import (
"bytes"
"github.com/goccy/go-json"
"github.com/sagernet/sing-box/common/badjson"
"github.com/sagernet/sing/common"
E "github.com/sagernet/sing/common/exceptions"
"github.com/sagernet/sing-box/common/badjson"
"github.com/goccy/go-json"
)
func ToMap(v any) (*badjson.JSONObject, error) {

View File

@@ -1,10 +1,12 @@
package option
import (
"github.com/goccy/go-json"
C "github.com/sagernet/sing-box/constant"
E "github.com/sagernet/sing/common/exceptions"
M "github.com/sagernet/sing/common/metadata"
C "github.com/sagernet/sing-box/constant"
"github.com/goccy/go-json"
)
type _Outbound struct {

View File

@@ -1,10 +1,12 @@
package option
import (
"github.com/goccy/go-json"
C "github.com/sagernet/sing-box/constant"
"github.com/sagernet/sing/common"
E "github.com/sagernet/sing/common/exceptions"
C "github.com/sagernet/sing-box/constant"
"github.com/goccy/go-json"
)
type RouteOptions struct {

View File

@@ -4,9 +4,11 @@ import (
"net/netip"
"strings"
"github.com/goccy/go-json"
C "github.com/sagernet/sing-box/constant"
E "github.com/sagernet/sing/common/exceptions"
C "github.com/sagernet/sing-box/constant"
"github.com/goccy/go-json"
)
type ListenAddress netip.Addr