Documentation ¶
Index ¶
- Variables
- func EmailOKToAddToWaitingList(ctx context.Context, db boil.ContextExecutor, address string) (string, bool)
- func EmailOKToSignup(ctx context.Context, db boil.ContextExecutor, sender sender.Sender, ...) (string, bool)
- func ValidateEnum[A comparable](value A, vals []A, labels []string) error
- func ValidateMinMax(label string, p string, minL int, maxL int) error
- func ValidatePassword(p string) error
- func ValidateUsername(p string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var AttributionRE *regexp.Regexp = regexp.MustCompile(`[a-z_]+`)
View Source
var EmailRE *regexp.Regexp = regexp.MustCompile(`(?P<name>[a-zA-Z0-9.!#$%&'*+/=?^_ \x60{|}~-]+)@(?P<domain>[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])?)*)$`)
View Source
var TestEmailRE *regexp.Regexp = regexp.MustCompile(`dpetroff(\+[^@]+)?@gmail.com`)
Functions ¶
func EmailOKToSignup ¶
func ValidateEnum ¶
func ValidateEnum[A comparable](value A, vals []A, labels []string) error
func ValidatePassword ¶
func ValidateUsername ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.