Sprig String Slice

Sprig String Slice

join

func join(separator string, list interface{}) string
Joins a list of strings into a single string, with the given
separator.

sortAlpha

func sortAlpha(list interface{}) []string
Sorts a list of strings into alphabetical (lexicographical) order.

split

func split(separator string, str string) map[string]string
Splits a string into a `dict`. It is designed to make it easy to use
template dot notation for accessing members

splitList

func splitList(separator string, str string) []string
Splits a string into a list of strings.

splitn

func splitn(separator string, count int, str string) map[string]string
Splits a string into a `dict`. It is designed to make it easy to use
template dot notation for accessing members.

toStrings

func toStrings(list interface{}) []string
Given a list-like collection, produce a slice of strings.