validator

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package validator holds utilities for validating data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaValidator

type SchemaValidator interface {
	// Validate validates document against some kind of schema located in schemaPath.
	Validate(document, schemaPath string) error
}

SchemaValidator describes entity that can validate document against some kind of schema.

type Validator added in v0.8.6

type Validator interface {
	// Validate validates in
	Validate(in interface{}) error
}

Validator describes validator

Jump to

Keyboard shortcuts

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