Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
fifsky committed Apr 9, 2020
1 parent ac46d78 commit 06df785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ Relation Where:

```go
moment := &MomentList{}
err := gosql.Relation("User" , func(b *gosql.ModelStruct) {
err := gosql.Relation("User" , func(b *gosql.Builder) {
//this is builder instance,
b.Where("gender = 0")
}).Get(moment , "select * from moments")
Expand Down

0 comments on commit 06df785

Please sign in to comment.