Versions in this module Expand all Collapse all v1 v1.0.0 Oct 11, 2026 Changes in this version + const DefaultListLimit + const MaxListLimit + const MinListLimit + var ErrInvalidCursor = errors.New("invalid cursor") + func DecodeCursor(cursor string) (int, error) + func EncodeCursor(id int) string + func Error(w http.ResponseWriter, statusCode int, code, message string, details any) + func ParseListLimit(r *http.Request) int + func SendJSON(w http.ResponseWriter, statusCode int, resp Response) + func Success(w http.ResponseWriter, data any) + func SuccessList(w http.ResponseWriter, items any, meta any) + type ErrorInfo struct + Code string + Details any + Message string + type ListMeta struct + Pagination Pagination + type Pagination struct + HasMore bool + Limit *int + NextCursor string + Offset *int + Total *int + type Response struct + Data any + Error any + Meta any