chore: reformat code

This commit is contained in:
世界
2022-06-09 21:08:46 +08:00
parent 9a55213ddc
commit cd466f05d3
114 changed files with 159 additions and 185 deletions

View File

@@ -2,10 +2,10 @@ package common
import (
"fmt"
"github.com/Dreamacro/clash/component/geodata"
"github.com/Dreamacro/clash/component/geodata/router"
"strings"
"github.com/Dreamacro/clash/component/geodata"
"github.com/Dreamacro/clash/component/geodata/router"
"github.com/Dreamacro/clash/component/mmdb"
"github.com/Dreamacro/clash/component/resolver"
C "github.com/Dreamacro/clash/constant"

View File

@@ -2,13 +2,14 @@ package common
import (
"fmt"
_ "unsafe"
"github.com/Dreamacro/clash/component/geodata"
_ "github.com/Dreamacro/clash/component/geodata/memconservative"
"github.com/Dreamacro/clash/component/geodata/router"
_ "github.com/Dreamacro/clash/component/geodata/standard"
C "github.com/Dreamacro/clash/constant"
"github.com/Dreamacro/clash/log"
_ "unsafe"
)
//go:linkname initGeoSite github.com/Dreamacro/clash/config.initGeoSite

View File

@@ -2,8 +2,9 @@ package common
import (
"fmt"
C "github.com/Dreamacro/clash/constant"
"strings"
C "github.com/Dreamacro/clash/constant"
)
type InType struct {

View File

@@ -1,8 +1,9 @@
package common
import (
C "github.com/Dreamacro/clash/constant"
"net/netip"
C "github.com/Dreamacro/clash/constant"
)
type IPSuffix struct {

View File

@@ -2,8 +2,9 @@ package common
import (
"fmt"
C "github.com/Dreamacro/clash/constant"
"strings"
C "github.com/Dreamacro/clash/constant"
)
type NetworkType struct {

View File

@@ -2,13 +2,14 @@ package common
import (
"fmt"
"runtime"
"strconv"
"strings"
"github.com/Dreamacro/clash/common/utils"
"github.com/Dreamacro/clash/component/process"
C "github.com/Dreamacro/clash/constant"
"github.com/Dreamacro/clash/log"
"runtime"
"strconv"
"strings"
)
type Uid struct {