Fix examples of Find in README
This commit is contained in:
parent
0b027fa01c
commit
ca4dc4433b
1 changed files with 2 additions and 2 deletions
|
@ -1027,10 +1027,10 @@ Find is used to find a single row by primary key:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
// Retrieve pilot with all columns filled
|
// Retrieve pilot with all columns filled
|
||||||
pilot, err := models.PilotFind(db, 1)
|
pilot, err := models.FindPilot(db, 1)
|
||||||
|
|
||||||
// Retrieve a subset of column values
|
// Retrieve a subset of column values
|
||||||
jet, err := models.JetFind(db, 1, "name", "color")
|
jet, err := models.FindJet(db, 1, "name", "color")
|
||||||
```
|
```
|
||||||
|
|
||||||
### Insert
|
### Insert
|
||||||
|
|
Loading…
Reference in a new issue