Filters export all builtin filters
var Filters = exec.FilterSet{ "abs": filterAbs, "attr": filterAttr, "batch": filterBatch, "capitalize": filterCapitalize, "center": filterCenter, "d": filterDefault, "default": filterDefault, "dictsort": filterDictSort, "e": filterEscape, "escape": filterEscape, "filesizeformat": filterFileSize, "first": filterFirst, "float": filterFloat, "forceescape": filterForceEscape, "format": filterFormat, "groupby": filterGroupBy, "indent": filterIndent, "int": filterInteger, "join": filterJoin, "last": filterLast, "length": filterLength, "list": filterList, "lower": filterLower, "map": filterMap, "max": filterMax, "min": filterMin, "pprint": filterPPrint, "random": filterRandom, "reject": filterReject, "rejectattr": filterRejectAttr, "replace": filterReplace, "reverse": filterReverse, "round": filterRound, "safe": filterSafe, "select": filterSelect, "selectattr": filterSelectAttr, "slice": filterSlice, "sort": filterSort, "string": filterString, "striptags": filterStriptags, "sum": filterSum, "title": filterTitle, "tojson": filterToJSON, "trim": filterTrim, "truncate": filterTruncate, "unique": filterUnique, "upper": filterUpper, "urlencode": filterUrlencode, "urlize": filterUrlize, "wordcount": filterWordcount, "wordwrap": filterWordwrap, "xmlattr": filterXMLAttr, }
var Globals = exec.NewContext(map[string]interface{}{ "cycler": Cycler, "dict": Dict, "joiner": Joiner, "lipsum": Lipsum, "namespace": Namespace, "range": Range, })
Statements exports all builtins statements
var Statements = statements.All
var Tests = exec.TestSet{ "callable": testCallable, "defined": testDefined, "divisibleby": testDivisibleby, "eq": testEqual, "equalto": testEqual, "==": testEqual, "even": testEven, "ge": testGreaterEqual, ">=": testGreaterEqual, "gt": testGreaterThan, "greaterthan": testGreaterThan, ">": testGreaterThan, "in": testIn, "iterable": testIterable, "le": testLessEqual, "<=": testLessEqual, "lower": testLower, "lt": testLessThan, "lessthan": testLessThan, "<": testLessThan, "mapping": testMapping, "ne": testNotEqual, "!=": testNotEqual, "none": testNone, "number": testNumber, "odd": testOdd, "sameas": testSameas, "sequence": testIterable, "string": testString, "undefined": testUndefined, "upper": testUpper, }
func Cycler(va *exec.VarArgs) *exec.Value
func Dict(va *exec.VarArgs) *exec.Value
func Joiner(va *exec.VarArgs) *exec.Value
func Lipsum(va *exec.VarArgs) *exec.Value
func Namespace(va *exec.VarArgs) map[string]interface{}
func Range(va *exec.VarArgs) <-chan int
Name | Synopsis |
---|---|
.. | |
statements |