vssutil

package
v0.16.15 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlphaSpaceString      = `^[a-zA-Z` + nonEnglishChars + `\s]+$`
	AlphaNumSpaceString   = `^[a-zA-Z0-9` + nonEnglishChars + `\s]+$`
	AlphaNumSpecialString = `^[a-zA-Z0-9` + nonEnglishChars + allSpecialChars + `\s]+$`
	SimpleSentenceString  = `^[\w` + nonEnglishChars + `\s'"\-\.?!]+$`
	SlugString            = `^[a-z0-9]+(?:-[a-z0-9]+)*$`
)

Variables

View Source
var (
	UpdatedRegex       = regexp.MustCompile(updatedString)
	CreatedRegex       = regexp.MustCompile(createdString)
	AuthorizationRegex = regexp.MustCompile(authorizationString)
)
View Source
var (
	AlphaSpaceRegex      = regexp.MustCompile(AlphaSpaceString)
	AlphaNumSpaceRegex   = regexp.MustCompile(AlphaNumSpaceString)
	AlphaNumSpecialRegex = regexp.MustCompile(AlphaNumSpecialString)
	SimpleSentenceRegex  = regexp.MustCompile(SimpleSentenceString)
	SlugRegex            = regexp.MustCompile(SlugString)
)

Functions

func AlphaNumSpaceValid added in v0.16.13

func AlphaNumSpaceValid(fl validator.FieldLevel) bool

func AlphaNumSpecialValid

func AlphaNumSpecialValid(fl validator.FieldLevel) bool

func AlphaSpaceValid added in v0.16.1

func AlphaSpaceValid(fl validator.FieldLevel) bool

func DebugClaims added in v0.10.0

func DebugClaims(claims jwt.MapClaims)

func DebugRequestBody added in v0.11.0

func DebugRequestBody(c *gin.Context)

func GetExchangeRate added in v0.5.1

func GetExchangeRate(cur string) (float64, error)

func RandomString added in v0.16.0

func RandomString(size int, prefix string) string

func SimpleSentenceValid added in v0.14.18

func SimpleSentenceValid(fl validator.FieldLevel) bool

func SlugValid added in v0.16.13

func SlugValid(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