Documentation
¶
Index ¶
- Variables
- func GenerateAndCacheVerificationCode(email string) (int, error)
- func GetCachedVerificationCode(email string) (int, error)
- func GetTokenFromRequest(r *http.Request) (string, error)
- func ParseJSON(r *http.Request, payload any) error
- func SendMail(recipient string, subject string, username string, message string) error
- func WriteError(w http.ResponseWriter, status int, err ...string)
- func WriteJSON(w http.ResponseWriter, status int, status_msg, data any, others ...string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Validate = validator.New()
Functions ¶
func WriteError ¶
func WriteError(w http.ResponseWriter, status int, err ...string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.