Back to godoc.org
Package xstrings provides addons to standard package strings.
func HeadTail ¶
HeadTail splits string into head & tail.
(head+sep+tail) -> head, tail.
Note: tail may contain sep.
func Split2 ¶
Split2 splits string by sep and expects exactly 2 parts.
Documentation was rendered with GOOS=linux and GOARCH=amd64.