package
0.1.1
Repository: https://github.com/dmitrymomot/go-api-server.git
Documentation: pkg.go.dev

# Functions

NewValidationError returns a new ValidationError.
Email is a validator that checks if the value is a valid email address.
ValidateFile validates file size and content type.
ValidateFileContentType validates file content type.
ValidateFileFromRequest validates file size and content type from multipart form request.
ValidateFileSize validates file size.
ValidateImage validates image file size and content type.
ValidateSolanaWalletAddr validates a Solana wallet address.
ValidateStruct validate struct data - s: struct pointer - return: validation errors as url.Values or nil if no errors.

# Constants

No description provided by the author
Predefined image content types.
No description provided by the author

# Variables

32 MB.
Predefined errors.
Predefined errors.
Predefined errors.
ErrValidation is returned when validation fails.

# Structs

EmailAddress is a structure that stores the address local-part@domain parts.
ValidationError is a custom error type that contains a map of field names to error messages.