Note that template functions are not available for external template engines.
package environ // import "gnorm.org/gnorm/environ"
func dec(x int) int dec decrements the argument’s value by 1.
package environ // import "gnorm.org/gnorm/environ"
func inc(x int) int inc increments the argument’s value by 1.
package environ // import "gnorm.org/gnorm/environ"
func makeMap(vals …interface{}) (map[string]interface{}, error) makeMap expects an even number of parameters, in order to have name:value pairs. All even values must be strings as keys. Odd values may be any value. This is used to make maps to pass information into sub templates, range statements, etc.
package environ // import "gnorm.org/gnorm/environ"
func makeSlice(vals …interface{}) interface{} makeSlice returns the arguments as a single slice. If all the arguments are strings, they are returned as a []string, otherwise they’re returned as []interface{}.
package environ // import "gnorm.org/gnorm/environ"
func numbers(start, end int) data.Strings numbers returns a slice of strings of the numbers start to end (inclusive).
package environ // import "gnorm.org/gnorm/environ"
func sliceString(s string, start, end int) string sliceString returns a slice of s from index start to end.
package environ // import "gnorm.org/gnorm/environ"
func sub(x int, vals …int) int sub subtracts the second and following values from the first argument.
package environ // import "gnorm.org/gnorm/environ"
func sum(vals …int) int sum returns the sum of its arguments.