templateutils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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(tmpl string, data interface{}) (string, error)

func StringBlock

func StringBlock(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