Versions in this module Expand all Collapse all v1 v1.0.0 May 20, 2023 Changes in this version + var TEMPLATE_MANAGER *templates.Manager + func Json(w http.ResponseWriter, jsonResponse *JSONResponse) error + func JsonDecode(r *http.Request, data interface{}) error + func JsonEncode(w http.ResponseWriter, data interface{}, status ...ResponseStatus) error + func JsonError(w http.ResponseWriter, message string, statusCode int, err error) error + func Render(w http.ResponseWriter, templateName string, data any) error + func String(w http.ResponseWriter, templateString string, data any) error + type JSONError struct + Err error + Message string + StatusCode int + func NewJsonError(message string, statusCode int, err error) *JSONError + func (e *JSONError) Error() string + func (e *JSONError) Unwrap() error + func (e *JSONError) Write(w http.ResponseWriter) error + type JSONResponse struct + Data interface{} + Detail string + Status ResponseStatus + type ResponseStatus string + const ResponseStatusError + const ResponseStatusOK + const ResponseStatusRedirect