Documentation ¶
Overview ¶
Package godatatables implements a function to handle a DataTables request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataTables ¶
func DataTables(w http.ResponseWriter, r *http.Request, mysqlDb *sql.DB, t string, additionalWhere string, groupBy string, columns ...Column)
DataTables handles a client DataTables request. w is the http.ResponseWriter. r is the *http.Request. mysqlDb is an instance of *sql.Db t is the name of the database table additionalWhere is any additional where clause to be applied to the query. groupBy is the group by clause. Specify columns that should be present in the response.
Types ¶
Click to show internal directories.
Click to hide internal directories.