template

package
v0.0.0-...-c7a3bb2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DateFmtMail

func DateFmtMail(t time.Time, lang string) string

func DateFmtMailShort

func DateFmtMailShort(t time.Time) string

func DateInt64FmtMail

func DateInt64FmtMail(t int64, lang string) string

func EscapePound

func EscapePound(str string) string

TODO: Use url.Escape.

func FuncMap

func FuncMap() []template.FuncMap

FuncMap returns a list of user-defined template functions.

func NewLine2br

func NewLine2br(raw string) string

NewLine2br simply replaces "\n" to "<br>".

func Safe

func Safe(raw string) template.HTML

func Str2HTML

func Str2HTML(raw string) template.HTML

Types

This section is empty.

Jump to

Keyboard shortcuts

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