Documentation
¶
Overview ¶
Package validate provides input validation utilities.
Index ¶
Constants ¶
View Source
const MaxHostnameLength = 253
MaxHostnameLength is the maximum allowed hostname length per RFC 1035.
View Source
const MaxParamNameLength = 128
MaxParamNameLength is the maximum allowed parameter name length.
View Source
const MaxQueryLength = 1 << 20
MaxQueryLength is the maximum allowed query length (1MB).
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ValidationError ¶
ValidationError represents a validation failure.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.
Click to show internal directories.
Click to hide internal directories.