Documentation ¶
Index ¶
Constants ¶
View Source
const ( PW_SALT_BYTES = 32 PW_HASH_BYTES = 64 )
Variables ¶
View Source
var FuncMap = template.FuncMap{ "replace": func(input, from, to string) string { return strings.Replace(input, from, to, -1) }, "card_text": func(input models.Card) string { return input.GetText() }, "card_dash": func(input models.Card) string { return strings.Replace(input.GetText(), "_", "<div class=\"long-dash\"></div>", -1) }, "card_black": func(input models.Card) bool { return input.GetColor() == models.BLACK_CARD }, "long_text": func(input string) bool { return len(input) > 100 }, "is_player": func(user models.User) bool { return user.UserType == models.PlayerType }, "is_admin": func(user models.User) bool { return user.IsAdmin() }, "format_date": func(date time.Time) string { return date.Format("2 Jan 2006, 15:04:01") }, }
Functions ¶
func CheckPassword ¶
func GetUsername ¶
func HashPassword ¶
func IsLoggedIn ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.