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

Method IsNil

value.go:87–90  ·  view source on GitHub ↗

IsNil checks whether the underlying value is NIL

()

Source from the content-addressed store, hash-verified

85
86// IsNil checks whether the underlying value is NIL
87func (v *Value) IsNil() bool {
88 // fmt.Printf("%+v\n", v.getResolvedValue().Type().String())
89 return !v.getResolvedValue().IsValid()
90}
91
92// String returns a string for the underlying value. If this value is not
93// of type string, pongo2 tries to convert it. Currently the following

Callers 5

StringMethod · 0.95
resolveMethod · 0.80
filterDefaultIfNoneFunction · 0.80
filterFloatformatFunction · 0.80
filterYesnoFunction · 0.80

Calls 1

getResolvedValueMethod · 0.95

Tested by

no test coverage detected