util

package
v0.0.0-...-7c35eaa Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewError

func NewError(ctx iris.Context, status int, errors ...any)

func ValidateBody

func ValidateBody[T any](c iris.Context) (*T, error)

func ValidateForm

func ValidateForm[T any](c iris.Context) (*T, error)

func ValidateQuery

func ValidateQuery[T any](c iris.Context) (*T, error)

Types

type HTTPError

type HTTPError struct {
	Code        int    `json:"code"`
	Message     string `json:"message"`
	Description string `json:"description" binding:"omitempty"`
}

Jump to

Keyboard shortcuts

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