Documentation ¶
Index ¶
- Variables
- func AddFlashMessage(w http.ResponseWriter, req *http.Request, message string, mtype string) error
- func FormatPrice(price interface{}) string
- func GetCurrentLocale(req *http.Request) string
- func GetCurrentUser(req *http.Request) *users.User
- func GetDB(req *http.Request) *gorm.DB
- func URLParam(name string, req *http.Request) string
Constants ¶
This section is empty.
Variables ¶
View Source
var HTMLSanitizer = bluemonday.UGCPolicy()
HTMLSanitizer HTML sanitizer
Functions ¶
func AddFlashMessage ¶
AddFlashMessage helper
func FormatPrice ¶
func FormatPrice(price interface{}) string
func GetCurrentLocale ¶
GetCurrentLocale get current locale from request
func GetCurrentUser ¶
GetCurrentUser get current user from request
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.