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

Method IsBool

value.go:50–52  ·  view source on GitHub ↗

IsBool checks whether the underlying value is a bool

()

Source from the content-addressed store, hash-verified

48
49// IsBool checks whether the underlying value is a bool
50func (v *Value) IsBool() bool {
51 return v.getResolvedValue().Kind() == reflect.Bool
52}
53
54// IsFloat checks whether the underlying value is a float
55func (v *Value) IsFloat() bool {

Callers 1

filterUrlizeFunction · 0.80

Calls 1

getResolvedValueMethod · 0.95

Tested by

no test coverage detected