Documentation ¶
Index ¶
- Variables
- func AddFlashMessage(w http.ResponseWriter, req *http.Request, message string, mtype string) error
- func AddFuncMapMaker(view *render.Render) *render.Render
- func GetCurrentLocale(req *http.Request) string
- func GetCurrentUser(req *http.Request) *users.User
- func GetDB(req *http.Request) *gorm.DB
- func GetEditMode(w http.ResponseWriter, req *http.Request) bool
- 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 AddFuncMapMaker ¶
AddFuncMapMaker add FuncMapMaker to view
func GetCurrentLocale ¶
GetCurrentLocale get current locale from request
func GetCurrentUser ¶
GetCurrentUser get current user from request
func GetEditMode ¶
func GetEditMode(w http.ResponseWriter, req *http.Request) bool
GetEditMode get edit mode
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.