Documentation ¶
Overview ¶
Package xstrings provides addons to standard package strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeadTail ¶
HeadTail splits string into head & tail.
(head+sep+tail) -> head, tail.
Note: tail may contain sep.
func SplitLines ¶
SplitLines splits string into lines.
The last line, if it is empty, is omitted from the result. (rationale is: string.Split("hello\nworld\n", "\n") -> ["hello", "world", ""])
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.