Documentation ¶
Index ¶
- Constants
- func CompareBcrypt(wanted, actual, pepper string) bool
- func ContainsString(needle string, haystack []string) bool
- func HashBcrypt(plain, pepper string) string
- func IsEmail(s string) bool
- func RandomString(n int) string
- func RandomStringSeeded(n int, seed string) string
- func RespondEmpty(w http.ResponseWriter, r *http.Request, status int)
- func RespondError(w http.ResponseWriter, r *http.Request, status int, err error)
- func RespondErrorMessage(w http.ResponseWriter, r *http.Request, status int, err error)
- func RespondHtml(w http.ResponseWriter, status int, data string)
- func RespondJson(w http.ResponseWriter, status int, object interface{})
Constants ¶
View Source
const (
MailPattern = "[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+"
)
Variables ¶
This section is empty.
Functions ¶
func CompareBcrypt ¶
func ContainsString ¶
func HashBcrypt ¶
func RandomString ¶
func RandomStringSeeded ¶
func RespondEmpty ¶
func RespondEmpty(w http.ResponseWriter, r *http.Request, status int)
func RespondError ¶
func RespondErrorMessage ¶
func RespondHtml ¶
func RespondHtml(w http.ResponseWriter, status int, data string)
func RespondJson ¶
func RespondJson(w http.ResponseWriter, status int, object interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.