validators

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 5 Imported by: 5

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{}/* 159 elements not displayed */

AllCurrencyNames represents all currency name in ISO 4217 Reference: https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-one.xml

Functions

func NotBlank

func NotBlank(fl validator.FieldLevel) bool

NotBlank returns whether the given content is not blank

func ValidAmountFilter added in v0.5.0

func ValidAmountFilter(fl validator.FieldLevel) bool

ValidAmountFilter returns whether the given amount filter is valid

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 ValidNickname added in v1.2.0

func ValidNickname(fl validator.FieldLevel) bool

ValidNickname returns whether the given nick name is valid

func ValidTagFilter added in v1.3.0

func ValidTagFilter(fl validator.FieldLevel) bool

ValidTagFilter returns whether the given tag filter is valid

func ValidUsername

func ValidUsername(fl validator.FieldLevel) bool

ValidUsername returns whether the given user name is valid

func ValidateFiscalYearStart added in v0.10.0

func ValidateFiscalYearStart(fl validator.FieldLevel) bool

ValidateFiscalYearStart validates if a fiscal year start date 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