function

package
v0.0.0-...-34b391d Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAsDate

func FormatAsDate(t time.Time) string

FormatAsDate 格式化日期模板函数 https://gin-gonic.com/docs/examples/html-rendering/

func SafeHTML

func SafeHTML(s string) template.HTML

SafeHTML 超文本标记语言模板函数 https://gin-gonic.com/docs/examples/html-rendering/

func TruncateChars

func TruncateChars(s string) string

TruncateChars 截断字符模板函数 https://gin-gonic.com/docs/examples/html-rendering/

Types

This section is empty.

Jump to

Keyboard shortcuts

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