695 B
695 B
title, description, categories, keywords, params, aliases
| title | description | categories | keywords | params | aliases | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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"]
Note
The
strings.Splitfunction essentially does the opposite of thecollections.Delimitfunction. Whilesplitcreates a slice from a string,delimitcreates a string from a slice.