Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Filters = exec.FilterSet{
"abs": filterAbs,
"add": filterAdd,
"append": filterAppend,
"attr": filterAttr,
"basename": filterBasename,
"batch": filterBatch,
"bool": filterBool,
"capitalize": filterCapitalize,
"center": filterCenter,
"concat": filterConcat,
"default": filterDefault,
"d": filterDefault,
"dictsort": filterDictSort,
"dir": filterDir,
"e": filterEscape,
"escape": filterEscape,
"fail": filterFail,
"file": filterFile,
"fileset": filterFileset,
"filesizeformat": filterFileSize,
"first": filterFirst,
"flatten": filterFlatten,
"float": filterFloat,
"forceescape": filterForceEscape,
"format": filterFormat,
"fromjson": filterFromJSON,
"fromyaml": filterFromYAML,
"fromtoml": filterFromTOML,
"get": filterGet,
"groupby": filterGroupBy,
"ifelse": filterIfElse,
"indent": filterIndent,
"insert": filterInsert,
"int": filterInteger,
"join": filterJoin,
"keys": filterKeys,
"last": filterLast,
"length": filterLength,
"list": filterList,
"lower": filterLower,
"map": filterMap,
"match": filterMatch,
"max": filterMax,
"min": filterMin,
"panic": filterPanic,
"pprint": filterPPrint,
"random": filterRandom,
"rejectattr": filterRejectAttr,
"reject": filterReject,
"replace": filterReplace,
"reverse": filterReverse,
"round": filterRound,
"safe": filterSafe,
"selectattr": filterSelectAttr,
"select": filterSelect,
"slice": filterSlice,
"sort": filterSort,
"split": filterSplit,
"string": filterString,
"striptags": filterStriptags,
"sum": filterSum,
"title": filterTitle,
"tojson": filterToJSON,
"totoml": filterToToml,
"toyaml": filterToYAML,
"trim": filterTrim,
"truncate": filterTruncate,
"try": filterTry,
"unique": filterUnique,
"unset": filterUnset,
"upper": filterUpper,
"urlencode": filterUrlencode,
"urlize": filterUrlize,
"values": filterValues,
"wordcount": filterWordcount,
"wordwrap": filterWordwrap,
"xmlattr": filterXMLAttr,
}
Filters export all builtin filters
View Source
var Globals = exec.NewContext(map[string]interface{}{ "cycler": Cycler, "dict": Dict, "joiner": Joiner, "lipsum": Lipsum, "namespace": Namespace, "range": Range, })
View Source
var Statements = statements.All
Statements exports all builtins statements
View Source
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": testSequence,
"string": testString,
"undefined": testUndefined,
"upper": testUpper,
"empty": testEmpty,
}
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.