validator

package module
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 7 Imported by: 2

README

GoZix Validator

License Documentation

Release Build Status Go Report Card Code Coverage

The bundle provide a validator integration to GoZix application.

Installation

go get github.com/gozix/validator/v3

Dependencies

Built-in Tags

Symbol Value Description
TagConfigurator validator.configurator Tag to mark specific configurator of validator.Validate
TagEnLocaleConfigurator validator.configurator.en-locale Tag to mark en locale configurator of validator.Validate
TagJsonTagNameConfigurator validator.configurator.json-tag-name Tag to mark json tag name configurator of validator.Validate

Documentation

You can find documentation on pkg.go.dev and read source code if needed.

Questions

If you have any questions, feel free to create an issue.

Documentation

Index

Constants

View Source
const BundleName = "validator"

BundleName is default definition name.

Variables

This section is empty.

Functions

func AsConfigurator

func AsConfigurator() di.Tags

AsConfigurator is syntax sugar for the di container.

Types

type Bundle

type Bundle struct{}

Bundle implements the glue.Bundle interface.

func NewBundle

func NewBundle() *Bundle

NewBundle create bundle instance.

func (*Bundle) Build

func (b *Bundle) Build(builder di.Builder) error

Build implements the glue.Bundle interface.

func (*Bundle) DependsOn

func (b *Bundle) DependsOn() []string

DependsOn implements the glue.DependsOn interface.

func (*Bundle) Name

func (b *Bundle) Name() string

type Configurator

type Configurator = func(*validator.Validate) error

Configurator is register default translations func interface.

Jump to

Keyboard shortcuts

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