Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Saúl Ortega 820073835e
Update README.md
il y a 6 ans
.gitignore Initial commit il y a 6 ans
LICENSE Initial commit il y a 6 ans
README.md Update README.md il y a 6 ans
datatables.go Create datatables.go il y a 6 ans

README.md

datatables

Simple parser for Datatables.

Usage

import "github.com/saulortega/datatables"

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
}