Skip to content

Commit 6191e1c

Browse files
committed
refactor: adjusting the package directory
1 parent 9f85d09 commit 6191e1c

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/zouchangfu/gorm-plus
1+
module github.com/gorm-plus/gorm-plus
22

33
go 1.18
44

gormplus/gormplus.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
package gormplus
22

33
import (
4-
"github.com/zouchangfu/gorm-plus/mapper"
54
"gorm.io/gorm"
65
)
76

87
func Init(db *gorm.DB) {
9-
mapper.GormDb = db
8+
GormDb = db
109
}

mapper/mapper.go renamed to gormplus/mapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package mapper
1+
package gormplus
22

33
import (
44
"gorm.io/gorm"

mapper/mapper_test.go renamed to gormplus/mapper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package mapper
1+
package gormplus
22

33
import (
44
"fmt"

mapper/query.go renamed to gormplus/query.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package mapper
1+
package gormplus
22

33
import (
44
"fmt"
5-
"github.com/zouchangfu/gorm-plus/constants"
5+
"github.com/gorm-plus/gorm-plus/constants"
66
"strings"
77
)
88

0 commit comments

Comments
 (0)