strings.Split

strings.Split


Returns a slice of strings by splitting the given string by a delimiter.

Examples:

{{ split "tag1,tag2,tag3" "," }} → ["tag1", "tag2", "tag3"]
{{ split "abc" "" }} → ["a", "b", "c"]