converter

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntToString

func IntToString(data int64) string

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

func Markdown2BasicHTML(source string) string

Markdown2BasicHTML convert markdown to html ,Only basic syntax can be used

func Markdown2HTML added in v1.0.0

func Markdown2HTML(source string) string

Markdown2HTML convert markdown to html

func StringToInt

func StringToInt(str string) int

func StringToInt64

func StringToInt64(str string) int64

Types

type DangerousHTMLFilterExtension added in v1.0.3

type DangerousHTMLFilterExtension struct {
}

func (*DangerousHTMLFilterExtension) Extend added in v1.0.3

type DangerousHTMLRenderer added in v1.0.3

type DangerousHTMLRenderer struct {
	goldmarkHTML.Config
	Filter *bluemonday.Policy
}

func (*DangerousHTMLRenderer) RegisterFuncs added in v1.0.3

RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL