Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace defines the methods for util to be used as template functions.
func (*Namespace) Explode ¶
Explode
Breaks a string into array with a delimiter (separator).
Example: {{ explode "," "hello there !" }} Returns: `[hello there !]`
func (*Namespace) Implode ¶
Implode
Returns a string from the elements of an array using a glue string to join them together.
Example: {{ slice 1 2 3 | explode "," }} Returns: `[1 2 3]`
Click to show internal directories.
Click to hide internal directories.