Browse Source

Update README.md

master
Saúl Ortega GitHub 6 years ago
parent
commit
5c959ff0b8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      README.md

+ 14
- 0
README.md View File

@@ -17,6 +17,20 @@ filter, err = datatables.Parse(r)
if err != nil {
//Handle error
}

//Get data from DB

response := filter.PrepareResponse()
response.RecordsTotal = 629635
response.RecordsFiltered = 50
response.Data = rows

//WriteResponse receive http.ResponseWriter. It send the response even if there are any error.
//Use WriteResponseOnSuccess(w) if you do not want to send the response when there is an error.
response.WriteResponse(w)

//

```

# Struct


Loading…
Cancel
Save