Documentation
¶
Overview ¶
Package strutil contains string-related utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DedupeSortedStrings ¶
DedupeSortedStrings rewrites full in-place to drop repeated strings.
func HasPathPrefix ¶
HasPathPrefix returns true if p equals or is under dir. The caller is responsible for ensuring that paths have been cleaned.
func TrimPathPrefix ¶
TrimPathPrefix trims dir (plus a path separator) from the beginning of p if present. If p equals dir, an empty string is returned. The caller is responsible for ensuring that paths have been cleaned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.