validators

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ParentAccountCurrencyPlaceholder = "---"

ParentAccountCurrencyPlaceholder represents the currency field of parent account stored in database

Variables

View Source
var AllCurrencyNames = map[string]bool{}/* 160 elements not displayed */

AllCurrencyNames represents all currency name in ISO 4217

Functions

func NotBlank

func NotBlank(fl validator.FieldLevel) bool

NotBlank returns whether the given content is not blank

func ValidCurrency

func ValidCurrency(fl validator.FieldLevel) bool

ValidCurrency returns whether the given currency is valid

func ValidEmail

func ValidEmail(fl validator.FieldLevel) bool

ValidEmail returns whether the given email is valid

func ValidHexRGBColor

func ValidHexRGBColor(fl validator.FieldLevel) bool

ValidHexRGBColor returns whether the given hex reb color is valid

func ValidUsername

func ValidUsername(fl validator.FieldLevel) bool

ValidUsername returns whether the given user name is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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