validation

package
v0.0.0-...-2d2cc06 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

a package to validate data against various criteria such as length, acceptable characters etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDirPathValid

func IsDirPathValid(dirPath string) bool

func IsEntryBaseLenValid

func IsEntryBaseLenValid(entry string) bool

func IsEntryPathValid

func IsEntryPathValid(entry string) bool

func IsFileNameValid

func IsFileNameValid(fName string) bool

func IsValidUsername

func IsValidUsername(username string, min, max int) bool

func LogValidationFailure

func LogValidationFailure(r *http.Request, validationErr error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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