Description

Returns a string for the underlying value. If this value is not of type string, pongo2 tries to convert it. Currently the following types for underlying values are supported:

1. string
2. int/uint (any size)
3. float (any precision)
4. bool
5. time.Time
6. String() will be called on the underlying value if provided

NIL values will lead to an empty string. Unsupported types are leading to their respective type name.

String is referenced in 7 repositories

github.com/flosch/pongo2 github.com/rande/gonode github.com/mattn/jedie

...