Documentation
¶
Index ¶
- Constants
- Variables
- func NotBlank(fl validator.FieldLevel) bool
- func ValidAmountFilter(fl validator.FieldLevel) bool
- func ValidCurrency(fl validator.FieldLevel) bool
- func ValidEmail(fl validator.FieldLevel) bool
- func ValidHexRGBColor(fl validator.FieldLevel) bool
- func ValidNickname(fl validator.FieldLevel) bool
- func ValidTagFilter(fl validator.FieldLevel) bool
- func ValidUsername(fl validator.FieldLevel) bool
- func ValidateFiscalYearStart(fl validator.FieldLevel) bool
Constants ¶
const ParentAccountCurrencyPlaceholder = "---"
ParentAccountCurrencyPlaceholder represents the currency field of parent account stored in database
Variables ¶
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.