utils

package
v0.0.0-...-8985b26 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataFromContext

func DataFromContext(ctx *fiber.Ctx) *jwt.TokenData

func FormatValidationErrors

func FormatValidationErrors(err error) map[string]ValidationError

func MapStructs

func MapStructs(mapFrom interface{}, mapTo interface{}) interface{}

Types

type ValidationError

type ValidationError struct {
	Tag   string `json:"tag"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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