import "github.com/imc-trading/templext"
func Add(y int, x int) int
Add do additions to number.
func AlignLeft(size int, str string) string
AlignLeft aligns text to the left.
func AlignRight(size int, str string) string
AlignRight aligns text to the right.
func Capitalize(str string) string
Capitalize capitalizes first character in string.
func Center(size int, str string) string
Center centers string.
func Compile(s string, d map[string]interface{}) (*bytes.Buffer, error)
Compile template.
func Date(args ...interface{}) string
Date return date as formated string.
func Default(def interface{}, inpOpt ...interface{}) interface{}
Default returns default if argument is empty.
func Div(y int, x int) int
Div do divisions to number.
func Even(x int) bool
Even return true if it's an even number.
func Join(sep string, inp []interface{}) string
Join elements in an array to a string.
func Keys(inp interface{}) (interface{}, error)
Keys from interface{}.
func Last(i int, inp interface{}) (bool, error)
Last element in array.
func Map(inp interface{}) bool
Map returns true if type is a map.
func Mul(y int, x int) int
Mul do multiplication to number.
func Odd(x int) bool
Odd return true if it's an odd number.
func Random(size int) int
Random returns random number.
func Repeat(rep int, inp string) string
Repeat string x number of times.
func Replace(oldStr string, newStr string, str string) string
Replace string.
func Split(sep string, inp string) []interface{}
Split string into an array.
func Sub(y int, x int) int
Sub do subtractions to number.
func Trim(trim string, str string) string
Trim trims characters on the left and right side of the string.
func TrimLeft(trim string, str string) string
TrimLeft trims characters on the left side of the string.
func TrimRight(trim string, str string) string
TrimRight trims characters on the right side of string.
func Type(inp interface{}) string
Type of variable (usefull for debugging templates).
Generated by godoc2md