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"),
|
||||
Where("age > ?", 30),
|
||||
AndIn("c.kind in ?", "visa", "mastercard"),
|
||||
Or("email like ?", "%aol.com%"),
|
||||
Or("email like ?", `%aol.com%`),
|
||||
GroupBy("id", "name"),
|
||||
Having("count(c.id) > ?", 2),
|
||||
Limit(5),
|
||||
|
|
Loading…
Reference in a new issue