validation

package
v0.0.0-...-bd503fb Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidationRule

type ValidationRule struct {
	Validate   string
	Translator string
}

type Validator

type Validator struct {
	Validate   *validator.Validate
	Translator ut.Translator
}

func New

func New() *Validator

New creates and returns a new validator TODO: needs to be more dynamic as the hardcoded validations at the bottom are not ideal.

Jump to

Keyboard shortcuts

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