Documentation ¶
Overview ¶
Package funcs provides default functions to include with templates
Index ¶
- func Add(i int, offset int) int
- func FormatStringTime(strtime string, input_format string, output_format string) string
- func FormatUnixTime(ts int64, output_format string) string
- func GjsonGet(body string, path string) interface{}
- func IsAvailable(name string, data interface{}) bool
- func IsEven(i int) bool
- func IsOdd(i int) bool
- func JoinPath(prefix string, path string) string
- func Mod(x float64, y float64) float64
- func QRCodeB64(uri string) string
- func QRCodeDataURI(uri string) string
- func StringHasPrefix(input string, prefix string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatStringTime ¶ added in v1.8.0
func FormatUnixTime ¶ added in v1.9.0
func IsAvailable ¶
IsAvailable return a boolean value indicating whether 'name' is a named property of 'data'.
func QRCodeB64 ¶ added in v1.6.0
Encodes 'uri' as a QR code and returns it as base-64-encoded string.
func QRCodeDataURI ¶ added in v1.6.0
Encodes 'uri' as a QR code and returns it as base-64-encoded data URI.
func StringHasPrefix ¶ added in v1.10.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.