validator

package
v0.0.0-...-308d6b8 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorsMap

type ErrorsMap map[string]interface{}

type StructValidator

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

func New

func New() *StructValidator

func (StructValidator) Validate

func (s StructValidator) Validate(payload interface{}, responsePayload interface{}) error

Validates a struct and return an interface with errors messages Is important to notice that each field returns only one error

Jump to

Keyboard shortcuts

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