From 7cc2772f442965f8cb57bf16def274ebec0ceb0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ortega?= Date: Fri, 23 Feb 2018 10:05:38 -0500 Subject: [PATCH] Update README.md --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index d05d565..2a7627c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,36 @@ # datatables Parser for Datatables + +# Usage + +filter, err = datatables.Parse(r) +if err != nil { + //Handle error +} + +# Struct + +type Filter struct { + Draw int + Start int + Length int + Order []Order + Columns []Column + SearchValue string + SearchRegex bool +} + +type Column struct { + Data string + Name string + Index int + Orderable bool + Searchable bool + SearchValue string + SearchRegex bool +} + +type Order struct { + Column Column + Dir string +}