Versions in this module Expand all Collapse all v1 v1.3.0 Oct 22, 2026 v1.2.0 Sep 21, 2026 v1.1.1 Sep 21, 2026 v1.1.0 Sep 21, 2026 v1.0.1 Jun 6, 2026 v1.0.0 Jun 6, 2026 Changes in this version + const InternalServerErrCode + const UnknownErrCode + const ValidationErrCode + type JSONAPI struct + Data any + Links *jsonapi.Links + Meta *jsonapi.Meta + func (j JSONAPI) Render(w http.ResponseWriter) error + func (j JSONAPI) WriteContentType(w http.ResponseWriter) + type JSONAPIErrors struct + Errors []*jsonapi.ErrorObject + func NewJSONAPIErrors() *JSONAPIErrors + func (e *JSONAPIErrors) AddError(err error) *JSONAPIErrors + func (e *JSONAPIErrors) AddErrors(errs []error) *JSONAPIErrors + func (e *JSONAPIErrors) GetHTTPStatus() int + func (e *JSONAPIErrors) Render(w http.ResponseWriter) error + func (e *JSONAPIErrors) WriteContentType(w http.ResponseWriter) + type Response struct + Data any + ErrorCode int + Message string + Status string + func NewResponse(data any, errorCode int, status, message string) Response + func NewResponseWithError(err error) Response + func NewSuccessResponse(data any, message string) Response + func (r Response) Render(w http.ResponseWriter) (err error) + func (r Response) WriteContentType(w http.ResponseWriter) v0 v0.0.2 Jun 26, 2025 v0.0.1 Jun 26, 2025