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

Method IsString

value.go:45–47  ·  view source on GitHub ↗

IsString checks whether the underlying value is a string

()

Source from the content-addressed store, hash-verified

43
44// IsString checks whether the underlying value is a string
45func (v *Value) IsString() bool {
46 return v.getResolvedValue().Kind() == reflect.String
47}
48
49// IsBool checks whether the underlying value is a bool
50func (v *Value) IsBool() bool {

Callers 3

EvaluateMethod · 0.80
ExecuteMethod · 0.80
filterTitleFunction · 0.80

Calls 1

getResolvedValueMethod · 0.95

Tested by

no test coverage detected