Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCustomValidators ¶
func RegisterCustomValidators(validate validator.Validate) error
Register all custom validation functions. ¶
Available tags:
- `g3_badge`: Validate badge prefix, e.g., "G3_BADGE".
- `g3_cdn`: Validate a g3doen CDN prefix, e.g., "cdn.g3deon.com/...".
- `g3_alpha`: Validate alphanumeric characters with characters "_, .".
func ValidateBadgePrefix ¶
func ValidateBadgePrefix(fl validator.FieldLevel) bool
func ValidateCDNPrefix ¶
func ValidateCDNPrefix(fl validator.FieldLevel) bool
func ValidateCustomAlpha ¶
func ValidateCustomAlpha(fl validator.FieldLevel) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.