Documentation
¶
Index ¶
- Variables
- func Error(w http.ResponseWriter, statusCode int, message string)
- func ExeTemplate(w http.ResponseWriter, templateFile string, data any)
- func HashPassword(password string) (string, error)
- func IsEmailValid(e string) bool
- func LogErrors(errorLogFile string)
- func Mail(email *mail.Email)
- func RandToken() string
- func SendRegisterMail(data map[string]any, to ...string) *mail.Email
- func Success(w http.ResponseWriter, data any)
- func TemplateParseGlob(ThemePath string)
- type JwtStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var Template *template.Template
Functions ¶
func ExeTemplate ¶
func ExeTemplate(w http.ResponseWriter, templateFile string, data any)
function to run html template
func HashPassword ¶
func IsEmailValid ¶
func LogErrors ¶
func LogErrors(errorLogFile string)
This function is set a log file All errors will be store in errorLogFile
func Success ¶
func Success(w http.ResponseWriter, data any)
func TemplateParseGlob ¶
func TemplateParseGlob(ThemePath string)
Types ¶
Click to show internal directories.
Click to hide internal directories.