errors

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotFound            = "notFound"
	Unauthorized        = "unauthorized"
	InternalServerError = "internalServerError"
)

Define error codes as constants.

Variables

This section is empty.

Functions

func Response

func Response(c *fiber.Ctx, status int, code, message interface{}) error

Response creates a JSON response with a message and code.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL