MCPcopy
hub / github.com/flosch/pongo2 / filterLengthis

Function filterLengthis

filters_builtin.go:406–408  ·  view source on GitHub ↗
(in *Value, param *Value)

Source from the content-addressed store, hash-verified

404}
405
406func filterLengthis(in *Value, param *Value) (*Value, *Error) {
407 return AsValue(in.Len() == param.Integer()), nil
408}
409
410func filterDefault(in *Value, param *Value) (*Value, *Error) {
411 if !in.IsTrue() {

Callers

nothing calls this directly

Calls 3

AsValueFunction · 0.85
IntegerMethod · 0.80
LenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…