Skip to content

Commit 5e3f623

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 76d9198 + 0a6bbca commit 5e3f623

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is an plus version of gorm, which is similar to the mybatis-plus syntax.
77

88
go get github.com/acmestack/gorm-plus
99

10-
go install github.com/acmestack/gorm-plus/cmd/gplus
10+
go install github.com/acmestack/gorm-plus/cmd/gplus@latest
1111

1212
## 生成工具gplus
1313

@@ -16,7 +16,7 @@ go install github.com/acmestack/gorm-plus/cmd/gplus
1616
我们在使用gorm的时候,是需要手写字段名称的,例如这样:
1717

1818
```go
19-
gormDb.Where("username = ? age = ?","zhangsan",18)
19+
gormDb.Where("username = ? and age = ?","zhangsan",18)
2020
```
2121

2222
一旦名称长,非常容易误写,而且如果有字段名称修改的话,还需要全局搜索一个个地修改,比较麻烦。
@@ -35,7 +35,7 @@ gplus 会在输入的路径下面生成 `zz_gen.column.go`文件。
3535

3636
例如:
3737

38-
在example目录下创建了了一个users.go 目录,执行 `gplus en paths=./eample`
38+
在example目录下创建了了一个users.go 目录,执行 `gplus gen paths=./eample`
3939

4040
users.go
4141

0 commit comments

Comments
 (0)