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
- func UniqueArray[T comparable](input []T) []T
- type DangerousHTMLFilterExtension
- type DangerousHTMLRenderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayNotInArray ¶
func DeleteUserDisplay ¶
func IntToString ¶
func InterfaceToString ¶
func InterfaceToString(data interface{}) string
InterfaceToString converts data to string It will be used in template render
func Markdown2BasicHTML ¶
Markdown2BasicHTML convert markdown to html ,Only basic syntax can be used
func Markdown2HTML ¶
Markdown2HTML convert markdown to html
func StringToInt ¶
func StringToInt64 ¶
func UniqueArray ¶ added in v1.2.5
func UniqueArray[T comparable](input []T) []T
Types ¶
type DangerousHTMLFilterExtension ¶
type DangerousHTMLFilterExtension struct { }
func (*DangerousHTMLFilterExtension) Extend ¶
func (e *DangerousHTMLFilterExtension) Extend(m goldmark.Markdown)
type DangerousHTMLRenderer ¶
type DangerousHTMLRenderer struct { goldmarkHTML.Config Filter *bluemonday.Policy }
func (*DangerousHTMLRenderer) RegisterFuncs ¶
func (r *DangerousHTMLRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.
Click to show internal directories.
Click to hide internal directories.