feat: 更新模块路径为 v2,修正文档和代码中的相关引用

This commit is contained in:
Rogee
2025-09-10 14:54:16 +08:00
parent 8bcc2cbdad
commit 0d05d70fb1
18 changed files with 328 additions and 308 deletions

View File

@@ -10,7 +10,7 @@ import (
"github.com/samber/lo"
log "github.com/sirupsen/logrus"
"go.ipao.vip/atomctl/pkg/utils/gomod"
"go.ipao.vip/atomctl/v2/pkg/utils/gomod"
)
//go:embed table.go.tpl

View File

@@ -11,7 +11,7 @@ import (
"github.com/samber/lo"
log "github.com/sirupsen/logrus"
"go.ipao.vip/atomctl/pkg/utils/gomod"
"go.ipao.vip/atomctl/v2/pkg/utils/gomod"
)
func getTypePkgName(typ string) string {

View File

@@ -6,8 +6,8 @@ import (
"os"
"strings"
"go.ipao.vip/atomctl/pkg/utils/gomod"
"github.com/samber/lo"
"go.ipao.vip/atomctl/v2/pkg/utils/gomod"
"golang.org/x/tools/imports"
)

View File

@@ -8,10 +8,10 @@ import (
"path/filepath"
"text/template"
"go.ipao.vip/atomctl/pkg/utils/gomod"
"github.com/Masterminds/sprig/v3"
"github.com/iancoleman/strcase"
"github.com/samber/lo"
"go.ipao.vip/atomctl/v2/pkg/utils/gomod"
)
//go:embed router.go.tpl

View File

@@ -7,10 +7,10 @@ import (
"go/token"
"strings"
"go.ipao.vip/atomctl/pkg/utils/gomod"
"github.com/pkg/errors"
"github.com/samber/lo"
log "github.com/sirupsen/logrus"
"go.ipao.vip/atomctl/v2/pkg/utils/gomod"
)
type RouteDefinition struct {