Skip to content

Commit

Permalink
Update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed May 15, 2020
1 parent ee6ac58 commit c8aa1bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func query(limit, offset int64) (total int64, es []entity, err error) {
func index(w http.ResponseWriter, req *http.Request) {
p := pagination.NewFromRequest(req)
p.Total, p.Items, _ = query(p.Limit, p.Offset())
data, _ := json.Marshal(p)
w.Write(data)
data, _ := json.Marshal(p)
w.Write(data)
}
```

0 comments on commit c8aa1bb

Please sign in to comment.