Replace path package with filepath

This commit is contained in:
Jamius Siam 2024-11-26 15:40:34 +06:00
parent d6f1f28db8
commit cab3cc63bf
8 changed files with 35 additions and 43 deletions

View file

@ -6,7 +6,7 @@ import (
"github.com/go-jet/jet/v2/internal/utils/dbidentifier"
"github.com/google/uuid"
"github.com/jackc/pgtype"
"path"
"path/filepath"
"reflect"
"strings"
"time"
@ -23,7 +23,7 @@ type Model struct {
// PackageName returns package name of model types
func (m Model) PackageName() string {
return path.Base(m.Path)
return filepath.Base(m.Path)
}
// UsePath returns new Model template with replaced file path