Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func HashPassword(password string) (string, error)
- func IsValidEmail(email string) bool
- func IsValidName(name string) bool
- func IsValidPassword(password string) bool
- func IsValidText(text string, minLen, maxLen int) bool
- func ValidateCommentInput(input model.CommentInput) error
- func ValidatePostInput(input model.PostInput) error
- func ValidateUserInput(input model.UserInput) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func HashPassword ¶
func IsValidEmail ¶
func IsValidName ¶
func IsValidPassword ¶
func IsValidText ¶
func ValidateCommentInput ¶
func ValidateCommentInput(input model.CommentInput) error
func ValidatePostInput ¶
func ValidateUserInput ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.