Documentation ¶
Index ¶
- func ArrayNotInArray(original []string, search []string) []string
- func DeleteUserDisplay(userID string) string
- func IntToString(data int64) string
- func InterfaceToString(data interface{}) string
- func Markdown2BasicHTML(source string) string
- func Markdown2HTML(source string) string
- func StringToInt(str string) int
- func StringToInt64(str string) int64
- type DangerousHTMLFilterExtension
- type DangerousHTMLRenderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayNotInArray ¶ added in v1.1.0
func DeleteUserDisplay ¶ added in v1.2.0
func IntToString ¶
func InterfaceToString ¶ added in v1.0.0
func InterfaceToString(data interface{}) string
InterfaceToString converts data to string It will be used in template render
func Markdown2BasicHTML ¶ added in v1.0.6
Markdown2BasicHTML convert markdown to html ,Only basic syntax can be used
func Markdown2HTML ¶ added in v1.0.0
Markdown2HTML convert markdown to html
func StringToInt ¶
func StringToInt64 ¶
Types ¶
type DangerousHTMLFilterExtension ¶ added in v1.0.3
type DangerousHTMLFilterExtension struct { }
func (*DangerousHTMLFilterExtension) Extend ¶ added in v1.0.3
func (e *DangerousHTMLFilterExtension) Extend(m goldmark.Markdown)
type DangerousHTMLRenderer ¶ added in v1.0.3
type DangerousHTMLRenderer struct { goldmarkHTML.Config Filter *bluemonday.Policy }
func (*DangerousHTMLRenderer) RegisterFuncs ¶ added in v1.0.3
func (r *DangerousHTMLRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.
Click to show internal directories.
Click to hide internal directories.