From bf5c917155e5b4f81b069b44977aef8ed6092c57 Mon Sep 17 00:00:00 2001 From: zu1k Date: Wed, 11 Aug 2021 17:52:26 +0800 Subject: [PATCH] update deps --- cmd/root.go | 3 +-- go.mod | 4 ++-- go.sum | 4 ++-- internal/db/db.go | 6 ++---- internal/entity/entity.go | 1 - pkg/dbif/db.go | 2 -- pkg/geoip/update.go | 1 - pkg/zxipv6wry/update.go | 3 +-- 8 files changed, 8 insertions(+), 16 deletions(-) delete mode 100644 pkg/geoip/update.go diff --git a/cmd/root.go b/cmd/root.go index 09a74d9..e6594e6 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -4,9 +4,8 @@ import ( "log" "os" - "github.com/zu1k/nali/internal/app" - "github.com/spf13/cobra" + "github.com/zu1k/nali/internal/app" ) var rootCmd = &cobra.Command{ diff --git a/go.mod b/go.mod index afd908f..ae78977 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/zu1k/nali go 1.14 require ( - github.com/fatih/color v1.12.0 // indirect + github.com/fatih/color v1.12.0 github.com/ipipdotnet/ipdb-go v1.3.1 github.com/oschwald/geoip2-golang v1.5.0 github.com/saracen/go7z v0.0.0-20191010121135-9c09b6bd7fda @@ -11,5 +11,5 @@ require ( github.com/saracen/solidblock v0.0.0-20190426153529-45df20abab6f // indirect github.com/spf13/cobra v1.2.1 github.com/ulikunitz/xz v0.5.10 // indirect - golang.org/x/text v0.3.6 + golang.org/x/text v0.3.7 ) diff --git a/go.sum b/go.sum index b294dd1..162e393 100644 --- a/go.sum +++ b/go.sum @@ -413,8 +413,8 @@ golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= diff --git a/internal/db/db.go b/internal/db/db.go index 6d6ae18..fced6de 100644 --- a/internal/db/db.go +++ b/internal/db/db.go @@ -4,13 +4,11 @@ import ( "os" "path/filepath" - "github.com/zu1k/nali/pkg/ipip" - - "github.com/zu1k/nali/pkg/geoip" - "github.com/zu1k/nali/internal/constant" "github.com/zu1k/nali/pkg/cdn" "github.com/zu1k/nali/pkg/dbif" + "github.com/zu1k/nali/pkg/geoip" + "github.com/zu1k/nali/pkg/ipip" "github.com/zu1k/nali/pkg/qqwry" "github.com/zu1k/nali/pkg/zxipv6wry" ) diff --git a/internal/entity/entity.go b/internal/entity/entity.go index 53e0c77..8b6b647 100644 --- a/internal/entity/entity.go +++ b/internal/entity/entity.go @@ -4,7 +4,6 @@ import ( "strings" "github.com/fatih/color" - "github.com/zu1k/nali/pkg/dbif" ) diff --git a/pkg/dbif/db.go b/pkg/dbif/db.go index 76fddd6..fb12850 100644 --- a/pkg/dbif/db.go +++ b/pkg/dbif/db.go @@ -4,9 +4,7 @@ import ( "fmt" "github.com/zu1k/nali/pkg/cdn" - "github.com/zu1k/nali/pkg/geoip" - "github.com/zu1k/nali/pkg/ipip" "github.com/zu1k/nali/pkg/qqwry" "github.com/zu1k/nali/pkg/zxipv6wry" diff --git a/pkg/geoip/update.go b/pkg/geoip/update.go deleted file mode 100644 index c80faa3..0000000 --- a/pkg/geoip/update.go +++ /dev/null @@ -1 +0,0 @@ -package geoip diff --git a/pkg/zxipv6wry/update.go b/pkg/zxipv6wry/update.go index 0008965..f8af2ac 100644 --- a/pkg/zxipv6wry/update.go +++ b/pkg/zxipv6wry/update.go @@ -7,9 +7,8 @@ import ( "net/http" "os" - "github.com/zu1k/nali/pkg/common" - "github.com/saracen/go7z" + "github.com/zu1k/nali/pkg/common" ) func Download(filePath string) (data []byte, err error) {