validation

package
v0.0.0-...-ed96fbf Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator interface {
	ValidateStruct(s interface{}) error
}

Validator defines a way to validate the Configuration struct

func WithMessages

func WithMessages(translations map[string]string) (Validator, error)

WithMessages Returns a validator that will use the custom messages for a given validation error [<validation error>]<custom message>

Jump to

Keyboard shortcuts

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