package cast
import "github.com/gohugoio/hugo/tpl/cast"
Package cast provides template functions for data type conversions.
Index ¶
Types ¶
type Namespace ¶
type Namespace struct { }
Namespace provides template functions for the "cast" namespace.
func New ¶
func New() *Namespace
New returns a new instance of the cast-namespaced template functions.
func (*Namespace) ToFloat ¶
ToFloat converts the given value to a float.
func (*Namespace) ToInt ¶
ToInt converts the given value to an int.
func (*Namespace) ToString ¶
ToString converts the given value to a string.
Source Files ¶
- Version
- v0.78.1
- Published
- Nov 5, 2020
- Platform
- darwin/amd64
- Imports
- 8 packages
- Last checked
- 9 minutes ago –
Tools for package owners.