Documentation ¶
Index ¶
- Variables
- func ErrorFlash(w http.ResponseWriter, r *http.Request, message string)
- func GetTemplate(templateName string) (*template.Template, error)
- func InfoFlash(w http.ResponseWriter, r *http.Request, message string)
- func LoadTemplates()
- func SuccessFlash(w http.ResponseWriter, r *http.Request, message string)
- type Flash
- type Paginator
- type View
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FlashInfo = "alert-info" FlashWarning = "alert-warning" FlashSuccess = "alert-success" FlashError = "alert-danger" )
Functions ¶
func ErrorFlash ¶
func ErrorFlash(w http.ResponseWriter, r *http.Request, message string)
func LoadTemplates ¶
func LoadTemplates()
func SuccessFlash ¶
func SuccessFlash(w http.ResponseWriter, r *http.Request, message string)
Types ¶
type Paginator ¶
type View ¶
func (*View) IsCurrentURL ¶
func (*View) RenderError ¶
func (v *View) RenderError(w http.ResponseWriter, status int)
Click to show internal directories.
Click to hide internal directories.