validators

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validatable

type Validatable interface {
	Validate() map[string]map[string]string
}

Validatable is an interface representing objects that can be validated.

type ValidationMessage

type ValidationMessage string

ValidationMessage is a string type alias that represents validation a validation message.

func Validate

func Validate(obj Validatable) ([]ValidationMessage, error)

Validate will validate a Validatable object and return a slice of validation messages as well as an error if any is encountered.

func (ValidationMessage) String

func (v ValidationMessage) String() string

Jump to

Keyboard shortcuts

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