rest

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddContext added in v0.0.4

func AddContext() fiber.Handler

func ParseBody

func ParseBody(c *fiber.Ctx, validate *validator.Validate, obj interface{}) error

ParseBody parses the request body into a struct and validates it.

func RegisterStringTag added in v0.0.5

func RegisterStringTag(validate *validator.Validate, tag string, regex *regexp.Regexp)

RegisterStringTag registers a custom validation rule for a string field based on a regular expression.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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