templateutils

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockMysql added in v0.5.7

func BlockMysql(tmplname, tmpl string, block string, data interface{}) (string, error)

func BoolToInt

func BoolToInt(b bool) int

func Eval

func Eval(t *template.Template) func(string, interface{}) (string, error)

func FormatTime

func FormatTime(t time.Time) string

func HasPrefix added in v0.2.1

func HasPrefix(v, prefix string) bool

func String

func String(tmplname, tmpl string, data interface{}) (string, error)

func StringBlock

func StringBlock(tmplname, tmpl string, block string, data interface{}) (string, error)

func StringBlockMysql

func StringBlockMysql(tmpl string, block string, data interface{}) (string, error)

func TrimSuffix

func TrimSuffix(suffix, v string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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