您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Saúl Ortega 820073835e
Update README.md
6 年前
.gitignore Initial commit 6 年前
LICENSE Initial commit 6 年前
README.md Update README.md 6 年前
datatables.go Create datatables.go 6 年前

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
}