Documentation
¶
Index ¶
- func ValidateBatchSize(count, max int, name string) error
- func ValidateControlChars(s string) error
- func ValidateDate(s string) error
- func ValidateDateRange(start, end string) error
- func ValidateEnum(value string, allowed []string) error
- func ValidateFilePath(path string) error
- func ValidateJournalType(s string) error
- func ValidateTransitionType(s string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateBatchSize ¶
ValidateBatchSize checks that count does not exceed max.
func ValidateControlChars ¶
ValidateControlChars rejects strings containing ASCII control characters other than TAB (0x09), LF (0x0A), and CR (0x0D).
func ValidateDate ¶
ValidateDate checks that s is a valid YYYY-MM-DD date.
func ValidateDateRange ¶
ValidateDateRange checks that start and end are valid dates and start <= end.
func ValidateEnum ¶
ValidateEnum checks that value is one of the allowed values.
func ValidateFilePath ¶
ValidateFilePath resolves symlinks and rejects paths containing traversal components.
func ValidateJournalType ¶
ValidateJournalType checks that s is a valid journal type.
func ValidateTransitionType ¶
ValidateTransitionType checks that s is a valid transition type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.