We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faf8d0c commit 68ce790Copy full SHA for 68ce790
cmd/internal/migrations/common.go
@@ -17,7 +17,7 @@ var (
17
pkgImportRegex = regexp.MustCompile(`(?m)^(\s*(?:[\w.]+\s+)?")github\.com/gofiber/fiber/v\d+("$)`)
18
)
19
20
-func MigrateGoPkgs(cmd *cobra.Command, cwd string, _ *semver.Version, target *semver.Version) error {
+func MigrateGoPkgs(cmd *cobra.Command, cwd string, _, target *semver.Version) error {
21
err := internal.ChangeFileContent(cwd, func(content string) string {
22
replacement := fmt.Sprintf("${1}github.com/gofiber/fiber/v%d${2}", target.Major())
23
return pkgImportRegex.ReplaceAllString(content, replacement)
0 commit comments