Skip to content

Commit 0a6bbca

Browse files
authored
Update README.md
1 parent b7bf996 commit 0a6bbca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ go install github.com/acmestack/gorm-plus/cmd/gplus@latest
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)