Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmailRegexp = regexp.MustCompile("^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$")
EmailRegexp regexp.
View Source
var UsernameRegexp = regexp.MustCompile(`^[a-zA-Z0-9\\.\\-_]+$`)
UsernameRegexp regexp.
Functions ¶
func DecodeBody ¶
func DecodeBody(w http.ResponseWriter, r *http.Request, dst interface{}) error
DecodeBody function.
Types ¶
type Form ¶
Form type.
func NewFromRequest ¶
NewFromRequest function.
func (*Form) MatchesPattern ¶
MatchesPattern function.
Click to show internal directories.
Click to hide internal directories.