Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Saúl Ortega 820073835e
Update README.md
6 anos atrás
.gitignore Initial commit 6 anos atrás
LICENSE Initial commit 6 anos atrás
README.md Update README.md 6 anos atrás
datatables.go Create datatables.go 6 anos atrás

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
}