declarativeusinggoplayground

package
v0.0.0-...-d7dd272 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base32IdValidator

func Base32IdValidator(fl validator.FieldLevel) bool

func CustomTranslator

func CustomTranslator(v *validator.Validate) ut.Translator

func CustomValidator

func CustomValidator() *validator.Validate

func GenBase32Id

func GenBase32Id() string

Types

type ExampleBase32Id

type ExampleBase32Id struct {
	ID string `validate:"baseid32"`
}

type ExampleStruct

type ExampleStruct struct {
	ID        string `validate:"len=2,required"`
	Data      string `validate:"max=4"`
	CreatedAt time.Time
	Count     int `validate:"max=10"`
}

Jump to

Keyboard shortcuts

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