feat: 更新模块路径为 v2,修正文档和代码中的相关引用
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user