Documentation
¶
Overview ¶
Package strutil provides common string utility functions shared across engram packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAny ¶
ContainsAny reports whether s contains any of the given substrings.
func Truncate ¶
Truncate truncates s to maxLen characters, appending "..." if truncated. The returned string may be up to maxLen+3 characters long.
func TruncateTrimmed ¶
TruncateTrimmed trims whitespace from s before truncating.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.