Update README.md
This commit is contained in:
		
							parent
							
								
									8098e07b65
								
							
						
					
					
						commit
						7cc2772f44
					
				
							
								
								
									
										34
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										34
									
								
								README.md
									
									
									
									
									
								
							| @ -1,2 +1,36 @@ | |||||||
| # datatables | # datatables | ||||||
| Parser for 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 | ||||||
|  | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user