package
Version:
v0.1.6
Opens a new window with list of versions in this module.
Published: Nov 22, 2023
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
¶
Response is a takes in a Fiber context object, an HTTP status code, a message string and some data.
func StatusBadRequest(c *fiber.Ctx, data any) error
StatusBadRequest is ...
func StatusNotFound(c *fiber.Ctx) error
StatusNotFound is ...
type HTTPResponse struct {
Success bool `json:"success"`
Message string `json:"message"`
Result any `json:"result,omitempty"`
}
HTTPResponse represents response body of API
Source Files
¶
Click to show internal directories.
Click to hide internal directories.