Documentation
¶
Index ¶
- func MarkdownToHTML(str string) (string, error)
- func MarkdownToHTMLFunc() func(str string) template.HTML
- func PutFlashError(w http.ResponseWriter, message string)
- func PutFlashInfo(w http.ResponseWriter, message string)
- func PutFlashSuccess(w http.ResponseWriter, message string)
- func PutFlashWarning(w http.ResponseWriter, message string)
- type Data
- type FormContent
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarkdownToHTML ¶
MarkdownToHTML renders a Markdown string as HTML.
func MarkdownToHTMLFunc ¶
MarkdownToHTMLFunc returns a function suitable for usage with html/template.
func PutFlashError ¶
func PutFlashError(w http.ResponseWriter, message string)
PutFlashError sets a Flash that will be rendered as an error message.
func PutFlashInfo ¶
func PutFlashInfo(w http.ResponseWriter, message string)
PutFlashInfo sets a Flash that will be rendered as an information message.
func PutFlashSuccess ¶
func PutFlashSuccess(w http.ResponseWriter, message string)
PutFlashSuccess sets a Flash that will be rendered as a success message.
func PutFlashWarning ¶
func PutFlashWarning(w http.ResponseWriter, message string)
PutFlashWarning sets a Flash that will be rendered as a warning message.
Types ¶
type FormContent ¶
FormContent holds the data that can be rendered by a form, protected with a CSRF token.
Click to show internal directories.
Click to hide internal directories.