package
Version:
v0.0.0-...-72fb90f
Opens a new window with list of versions in this module.
Published: Jun 11, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func ErrorResponse(c *fiber.Ctx, code int, message string, details ...string)
func SuccessResponse(c *fiber.Ctx, data interface{})
type ErrorInfo struct {
Message string `json:"message"`
Code int `json:"code,omitempty"`
Details string `json:"details,omitempty"`
}
type Response struct {
Success bool `json:"success"`
Data interface{} `json:"data,omitempty"`
Error *ErrorInfo `json:"error,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.