package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Jun 23, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Namespace struct {
}
Namespace defines the methods for cast to be used
as template functions.
Creates a new cast Namespace
func (ns *Namespace) ToSlice(i interface{}) []interface{}
ToSlice
Casts an interface to a []interface{} type.
Example: {{ toSlice 1 }}
Returns: `[1]`
Source Files
¶
Click to show internal directories.
Click to hide internal directories.