From 14c9d49d463980aa023d4ceb26d015211cef5d17 Mon Sep 17 00:00:00 2001 From: Unlock Music Dev Date: Sat, 19 Nov 2022 07:44:44 +0800 Subject: [PATCH] refactor: change module path --- algo/kgm/kgm.go | 2 +- algo/kgm/kgm_v3.go | 2 +- algo/kwm/kwm.go | 2 +- algo/ncm/meta.go | 3 ++- algo/ncm/ncm.go | 4 ++-- algo/qmc/qmc.go | 2 +- algo/tm/tm.go | 2 +- algo/xm/xm.go | 2 +- cmd/um/main.go | 16 ++++++++-------- go.mod | 2 +- 10 files changed, 19 insertions(+), 18 deletions(-) diff --git a/algo/kgm/kgm.go b/algo/kgm/kgm.go index 3ae15bb..fa3cd06 100644 --- a/algo/kgm/kgm.go +++ b/algo/kgm/kgm.go @@ -4,7 +4,7 @@ import ( "fmt" "io" - "github.com/unlock-music/cli/algo/common" + "unlock-music.dev/cli/algo/common" ) type Decoder struct { diff --git a/algo/kgm/kgm_v3.go b/algo/kgm/kgm_v3.go index 38173bc..24bc1b3 100644 --- a/algo/kgm/kgm_v3.go +++ b/algo/kgm/kgm_v3.go @@ -4,7 +4,7 @@ import ( "crypto/md5" "fmt" - "github.com/unlock-music/cli/algo/common" + "unlock-music.dev/cli/algo/common" ) // kgmCryptoV3 is kgm file crypto v3 diff --git a/algo/kwm/kwm.go b/algo/kwm/kwm.go index f222876..d5f1f67 100644 --- a/algo/kwm/kwm.go +++ b/algo/kwm/kwm.go @@ -9,7 +9,7 @@ import ( "strings" "unicode" - "github.com/unlock-music/cli/algo/common" + "unlock-music.dev/cli/algo/common" ) const magicHeader = "yeelion-kuwo-tme" diff --git a/algo/ncm/meta.go b/algo/ncm/meta.go index 58060b3..a75cfa9 100644 --- a/algo/ncm/meta.go +++ b/algo/ncm/meta.go @@ -1,8 +1,9 @@ package ncm import ( - "github.com/unlock-music/cli/algo/common" "strings" + + "unlock-music.dev/cli/algo/common" ) type RawMeta interface { diff --git a/algo/ncm/ncm.go b/algo/ncm/ncm.go index 5a1fb5a..0e3cf70 100644 --- a/algo/ncm/ncm.go +++ b/algo/ncm/ncm.go @@ -12,8 +12,8 @@ import ( "net/http" "strings" - "github.com/unlock-music/cli/algo/common" - "github.com/unlock-music/cli/internal/utils" + "unlock-music.dev/cli/algo/common" + "unlock-music.dev/cli/internal/utils" ) const magicHeader = "CTENFDAM" diff --git a/algo/qmc/qmc.go b/algo/qmc/qmc.go index 5cbfe15..72bc82c 100644 --- a/algo/qmc/qmc.go +++ b/algo/qmc/qmc.go @@ -9,7 +9,7 @@ import ( "strconv" "strings" - "github.com/unlock-music/cli/algo/common" + "unlock-music.dev/cli/algo/common" ) type Decoder struct { diff --git a/algo/tm/tm.go b/algo/tm/tm.go index bd46522..16508ac 100644 --- a/algo/tm/tm.go +++ b/algo/tm/tm.go @@ -6,7 +6,7 @@ import ( "fmt" "io" - "github.com/unlock-music/cli/algo/common" + "unlock-music.dev/cli/algo/common" ) var replaceHeader = []byte{0x00, 0x00, 0x00, 0x20, 0x66, 0x74, 0x79, 0x70} diff --git a/algo/xm/xm.go b/algo/xm/xm.go index a67b62b..f017ff9 100644 --- a/algo/xm/xm.go +++ b/algo/xm/xm.go @@ -6,7 +6,7 @@ import ( "fmt" "io" - "github.com/unlock-music/cli/algo/common" + "unlock-music.dev/cli/algo/common" ) var ( diff --git a/cmd/um/main.go b/cmd/um/main.go index f7f8787..7ac935e 100644 --- a/cmd/um/main.go +++ b/cmd/um/main.go @@ -16,14 +16,14 @@ import ( "github.com/urfave/cli/v2" "go.uber.org/zap" - "github.com/unlock-music/cli/algo/common" - _ "github.com/unlock-music/cli/algo/kgm" - _ "github.com/unlock-music/cli/algo/kwm" - _ "github.com/unlock-music/cli/algo/ncm" - _ "github.com/unlock-music/cli/algo/qmc" - _ "github.com/unlock-music/cli/algo/tm" - _ "github.com/unlock-music/cli/algo/xm" - "github.com/unlock-music/cli/internal/logging" + "unlock-music.dev/cli/algo/common" + _ "unlock-music.dev/cli/algo/kgm" + _ "unlock-music.dev/cli/algo/kwm" + _ "unlock-music.dev/cli/algo/ncm" + _ "unlock-music.dev/cli/algo/qmc" + _ "unlock-music.dev/cli/algo/tm" + _ "unlock-music.dev/cli/algo/xm" + "unlock-music.dev/cli/internal/logging" ) var AppVersion = "v0.0.6" diff --git a/go.mod b/go.mod index aa5e8a5..332442c 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/unlock-music/cli +module unlock-music.dev/cli go 1.17