Versions in this module Expand all Collapse all v0 v0.4.0 Feb 17, 2025 Changes in this version + var CookieName = "session" + func ErrorResponseJSON(w http.ResponseWriter, httpCode int, internalCode int, err error) + func ResponseJSON(w http.ResponseWriter, v any) + func SetCookieName(name string) + func SuccessfulResultMap() map[string]any + type ApiError struct + ErrorCode int + HttpStatus int + Message any + Timestamp any + func NewApiErrFromInternalErr(e InternalError, code ...int) *ApiError + func NewApiError(code int, msg string) *ApiError + func (e ApiError) Error() string + func (e ApiError) String() string + type CreatedObjectId struct + Id any + UUID any + type InternalError interface + GetCode func() int + GetMessage func() string + type ListResult struct + Count int32 + Results any + type Response struct + Data any + Message string + RequestStatus *ApiError + Success bool + Timestamp string + func SuccessfulResult() Response