Documentation ¶
Index ¶
- func CheckSingleWordLen(input string, SingleWordMaxLen int) bool
- type ErrorKey
- type Form
- func (f *Form) EmailFormat(field string, r *http.Request) bool
- func (f *Form) First_LastName_Min_Max_Len(field string, minLen, maxLen int, r *http.Request) bool
- func (f *Form) Has(field string, r *http.Request) bool
- func (f *Form) PassFormat(field string, minL, maxL int, r *http.Request) bool
- func (f *Form) Required(fields ...string)
- func (f *Form) Valid() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSingleWordLen ¶
Types ¶
type Form ¶
Form is a custom type that embeds url.Values and includes an Errors field.
func (*Form) EmailFormat ¶
EmailFormat checks if the specified field in the form data matches a valid email format
func (*Form) First_LastName_Min_Max_Len ¶
First_LastName_Min_Max_Len checks if the length of a field in the form data is within the specified range
func (*Form) PassFormat ¶
PassFormat checks if the specified field in the form data matches certain password format criteria
Click to show internal directories.
Click to hide internal directories.