Update README.md

This commit is contained in:
Saúl Ortega 2018-03-01 14:55:38 -05:00 提交者 GitHub
父節點 e7b93b8b15
當前提交 5c959ff0b8
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4AEE18F83AFDEB23

查看文件

@ -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