View definition

(*Value).Contains

Defined in github.com/flosch/pongo2/value.go

Description

Contains checks whether the underlying value (which must be of type struct, map, string, array or slice) contains of another Value (e. g. used to check whether a struct contains of a specific field or a map contains a specific key).

Example:

AsValue("Hello, World!").Contains(AsValue("World")) == true

Contains is referenced in 1 repository

github.com/flosch/pongo2