validation

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package validation provides data validation. It relies on the well established Go playground validator. The package is called `validation`, so as not to conflict with the original package. Validation applies the Singleton pattern, and it's safe to be retrieved at any stage of the application flow - it's not coupled to any other component.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() *validator.Validate

Get safely returns the application validator.

func ValidateStruct

func ValidateStruct(f interface{}) error

ValidateStruct allows DRY around the repetitive work of validating structs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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