Versions in this module Expand all Collapse all v0 v0.1.0 Nov 20, 2023 Changes in this version + type JSONResponse struct + Data any + Error bool + Message string + type Tools struct + AllowUnknownFields bool + MaxJSONSize int + func (t *Tools) ErrorJSON(w http.ResponseWriter, err error, status ...int) error + func (t *Tools) RandomString(n int) string + func (t *Tools) ReadJSON(w http.ResponseWriter, r *http.Request, data any) error + func (t *Tools) Slugify(s string) (string, error) + func (t *Tools) WriteJSON(w http.ResponseWriter, status int, data interface{}, headers ...http.Header) error