utils

package
v0.0.0-...-0ad0970 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddErrorContext

func AddErrorContext(err error, ctx string) error

func HashString

func HashString(password string) (string, error)

func MatchString

func MatchString(hash, password string) bool

func RandomCode

func RandomCode(n int) string

func RandomString

func RandomString(n int) string

func Respond

func Respond(w http.ResponseWriter, response map[string]interface{})

func SendMail

func SendMail(to []string, templateFile string, data map[string]string)

func ValidMail

func ValidMail(mail string) bool

func ValidNick

func ValidNick(nick string) bool

func ValidPassword

func ValidPassword(password string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL