playground

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() validation.Validator

New Creates a new go-playground validator

func ToResponseError

func ToResponseError(err error) []error

ToResponseError Converts playground errors to the generic response error from which we can translate

func ValidateStruct

func ValidateStruct(i interface{}) error

ValidateStruct is a helper for easy validation

Types

type GoPlaygroundValidator

type GoPlaygroundValidator struct {
	// contains filtered or unexported fields
}

GoPlaygroundValidator Request Validation. Currently Empty But can add any Validator

func (*GoPlaygroundValidator) Validate

func (v *GoPlaygroundValidator) Validate(i interface{}) error

Validate Implements the validator interface

Jump to

Keyboard shortcuts

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