Fix example in README
Percentages in a string should be either escaped `"%%"` or placed in a raw string. ````%````
This commit is contained in:
parent
003a51d90f
commit
c6c0db5b88
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ users, err := models.Users(db,
|
||||||
InnerJoin("credit_cards c on c.user_id = users.id"),
|
InnerJoin("credit_cards c on c.user_id = users.id"),
|
||||||
Where("age > ?", 30),
|
Where("age > ?", 30),
|
||||||
AndIn("c.kind in ?", "visa", "mastercard"),
|
AndIn("c.kind in ?", "visa", "mastercard"),
|
||||||
Or("email like ?", "%aol.com%"),
|
Or("email like ?", `%aol.com%`),
|
||||||
GroupBy("id", "name"),
|
GroupBy("id", "name"),
|
||||||
Having("count(c.id) > ?", 2),
|
Having("count(c.id) > ?", 2),
|
||||||
Limit(5),
|
Limit(5),
|
||||||
|
|
Loading…
Add table
Reference in a new issue