Documentation ¶
Overview ¶
Package text contains utilities for text manipulation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Split2 ¶
Split2 splits a string into 2 parts: before and after sep. Split2 is faster than equivalent strings.SplitN and does no allocations. Looking for the first occurrence of a delimiter.
func Split2Reversed ¶
Split2Reversed splits a string into 2 parts: before and after sep. Split2Reversed is faster than equivalent strings.SplitN and does no allocations. Looking for the last occurrence of a delimiter.
func ToSnakeCase ¶
ToSnakeCase converts given name to "snake_text_format".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.