validation

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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