validate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Schema

func Schema(schema map[string]string, input map[string]interface{}) error

Schema is used to validate a input map based on a schema that contains go-playground/validator tags. It takes a schema in map form as the first parameter and an input as the second parameter. It returns nil if the schema passes validation or an error if the schema doesn't pass validation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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