Documentation
¶
Overview ¶
Package stringsx provides additional string functions beyond those in the standard strings package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertFirstUnique ¶ added in v0.2.1
InsertFirstUnique inserts the given string at the start of the given string slice while keeping the overall length to the given max value. If the item is already on the list, then it is moved to the top and not re-added (unique items only). This is useful for a list of recent items.
func SplitLines ¶
SplitLines is a windows-safe version of strings.Split(s, "\n") that replaces "\r\n" with "\n" first.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.