fiberx

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package fiberx provides helper functions and utilities to work with Fiber framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errors

func Errors() fiber.ErrorHandler

Errors returns a Fiber error handler that formats errors into a consistent JSON structure.

func ParseAll

func ParseAll(ctx fiber.Ctx, out interface{}) *fiber.Error

ParseAll is helper function for parsing the query and body.

func ParseAllAndValidate

func ParseAllAndValidate(ctx fiber.Ctx, out interface{}) *fiber.Error

ParseAllAndValidate is helper function for parsing and validating the query and body.

func ParseBody

func ParseBody(ctx fiber.Ctx, body interface{}) *fiber.Error

ParseBody is helper function for parsing the body. Is any error occurs it will panic. Its just a helper function to avoid writing if condition again n again.

func ParseBodyAndValidate

func ParseBodyAndValidate(ctx fiber.Ctx, body interface{}) *fiber.Error

ParseBodyAndValidate is helper function for parsing and validating the body.

func Validate

func Validate(payload interface{}) *fiber.Error

Validate validates the input struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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