No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
Saúl Ortega 820073835e
Update README.md
hace 6 años
.gitignore Initial commit hace 6 años
LICENSE Initial commit hace 6 años
README.md Update README.md hace 6 años
datatables.go Create datatables.go hace 6 años

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
}