converter

package
v1.2.5-RC1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayNotInArray

func ArrayNotInArray(original []string, search []string) []string

func DeleteUserDisplay

func DeleteUserDisplay(userID string) string

func IntToString

func IntToString(data int64) string

func InterfaceToString

func InterfaceToString(data interface{}) string

InterfaceToString converts data to string It will be used in template render

func Markdown2BasicHTML

func Markdown2BasicHTML(source string) string

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

func Markdown2HTML

func Markdown2HTML(source string) string

Markdown2HTML convert markdown to html

func StringToInt

func StringToInt(str string) int

func StringToInt64

func StringToInt64(str string) int64

func UniqueArray added in v1.2.5

func UniqueArray[T comparable](input []T) []T

Types

type DangerousHTMLFilterExtension

type DangerousHTMLFilterExtension struct {
}

func (*DangerousHTMLFilterExtension) Extend

type DangerousHTMLRenderer

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

func (*DangerousHTMLRenderer) RegisterFuncs

RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.

Jump to

Keyboard shortcuts

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