validator

package
v0.0.0-...-b56e1d8 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *validator.Validate

New returns a new validator.Validate instance that is configured to recognize struct tags of the form "json", and to validate the "alphaspace" tag. The value of the "json" tag is used as the name of the field in error messages. If the value is '-', the field is ignored.

Types

type ErrResponse

type ErrResponse struct {
	Errors []string `json:"errors"`
}

func ToErrResponse

func ToErrResponse(err error) *ErrResponse

Jump to

Keyboard shortcuts

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